changeset 1077:6cc3bc4c8c5a

<Gregor> printf \'#!/bin/sh\\nCMD=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f1`\\nARG=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f2-`\\nexec ibin/$CMD "$ARG"\' > bin/interp; chmod 0755 bin/interp
author HackBot
date Fri, 14 Dec 2012 18:45:08 +0000
parents f35975b9dd96
children 3b54763b2a35
files bin/interp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/interp	Fri Dec 14 18:44:14 2012 +0000
+++ b/bin/interp	Fri Dec 14 18:45:08 2012 +0000
@@ -1,4 +1,4 @@
 #!/bin/sh
-CMD=`cut -d' ' -f1 "$1"`
-ARG=`cut -d' ' -f2- "$2"`
+CMD=`echo "$1" | cut -d' ' -f1`
+ARG=`echo "$1" | cut -d' ' -f2-`
 exec ibin/$CMD "$ARG"
\ No newline at end of file