Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix bug in logging read papers
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:dc57cc00203584028edc141b354553fe8f7039a1
User & Date: brandon 2016-04-06 20:30:35
Context
2016-04-06
20:31
fix incorrect info in help output check-in: ef545260b9 user: brandon tags: trunk
20:30
fix bug in logging read papers check-in: dc57cc0020 user: brandon tags: trunk
20:30
normalize and improve usage of quotes, printf vs echo and subshells check-in: ee4fbdb256 user: brandon tags: trunk
Changes

Changes to paperq.in.

142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
    sed -i "${pos}d" ${QFILE}
}

open_doc () {
    check_pos
    $(printf "$OPENCMD" "$(get_doc $pos)")
    printf "%s READ %s\n" "$(date '+[%Y-%m-%d %H:%M]')" \
           "$(sed -n "$1p" ${QFILE})" >>${LOGFILE}
    rem_doc
}

print_bib () {
    if ! grep -q $1 $2; then
        return
    fi







|







142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
    sed -i "${pos}d" ${QFILE}
}

open_doc () {
    check_pos
    $(printf "$OPENCMD" "$(get_doc $pos)")
    printf "%s READ %s\n" "$(date '+[%Y-%m-%d %H:%M]')" \
           "$(sed -n "${pos}p" ${QFILE})" >>${LOGFILE}
    rem_doc
}

print_bib () {
    if ! grep -q $1 $2; then
        return
    fi