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>
Tue, 24 Mar 2015 20:44:50 +0000 (20:44 +0000)
commit9b1200144d575dc6933f89dcee886a61ceeffb66
treef8d4476905d5bb990081ec6bb0cc886a30f4e792
parent2cf93448e2ba2540b7fc3ea2f939f62621488420
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