LP#1436047: Allow disabling of "bang commands" in srfsh user/miker/lp1436047-no-bang-commands
authorMike Rylander <mrylander@gmail.com>
Tue, 24 Mar 2015 20:22:16 +0000 (16:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 24 Mar 2015 20:22:16 +0000 (16:22 -0400)
commite26f75ae4d90cb3e7163d9737374268f48a40faf
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>
src/srfsh/srfsh.c