Merge pull request #368 from Nighoo/master

sh: Add escaping of $
This commit is contained in:
Holger Rapp 2014-05-22 16:43:08 -07:00
commit 5470b2f348

View File

@ -81,7 +81,7 @@ snippet getopt
done
shift $(($OPTIND-1))
snippet root
if [ $(id -u) -ne 0 ]; then exec sudo $0; fi
if [ \$(id -u) -ne 0 ]; then exec sudo \$0; fi
snippet fun
${1:function_name}() {
${0:#function_body}