]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1436047: Allow disabling of "bang commands" in srfsh
authorMike Rylander <mrylander@gmail.com>
Tue, 24 Mar 2015 20:22:16 +0000 (16:22 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 3 Jun 2015 17:33:34 +0000 (17:33 +0000)
commitd9cbdfd1deb13932720ddffc7f01e976e8efaeda
treeb4233ba5447e752e7e4a8f0773638906f55ef364
parent966fb05ed6b47b9a8982cbef2b665f8bab4f75d1
LP#1436047: Allow disabling of "bang commands" in srfsh

srfsh has the ability to execute commands via system() calls using
the common "!command" syntax.  This is very useful, but it would
be nice to be able to turn that functionality off in some cases.

This branch adds argument parsing to detect a new '--safe' command
line parameter, which disables the "!command" syntax.

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