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:34:17 +0000 (17:34 +0000)
commit3e01997ca7dbd6ce87ce227fc8c950e1de5141f9
tree57eb5f6cd67de2afa9b80ca9ae072c206147ffc8
parent822bc96c0b192375d342cb0d10ea63c3c4427602
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