]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1152272: do not log batch invocation of srfsh in .srfsh_history
authorGalen Charlton <gmc@esilibrary.com>
Wed, 3 Jun 2015 18:35:35 +0000 (18:35 +0000)
committerMike Rylander <mrylander@gmail.com>
Wed, 24 Jun 2015 13:45:46 +0000 (09:45 -0400)
commit33a5e60ee8f4c539d5bf3dc1d1ff1b62d5715d65
tree1e098033ab7b2bc5f2234fbefecca4bdf5d8c680
parent6f1daba1493011a8b01cd80d29a68976c24c7010
LP#1152272: do not log batch invocation of srfsh in .srfsh_history

When running srfsh to process a script, do not log
the requests in .srfsh_history.

To test
-------
[1] Run the following command:

    echo 'request opensrf.math opensrf.system.echo "foo"' | srfsh

[2] Note that the last line of ~/.srfsh_history should be
    'request opensrf.math opensrf.system.echo "foo"'

[3] Apply the patch, compile, and run

    echo 'request opensrf.math opensrf.system.echo "bar"' | srfsh

[4] This time, no additional line should have been added to
    ~/.srfsh_history

[5] Another variation to try:

    srfsh test.srfsh

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
src/srfsh/srfsh.c