changeset 1076:f35975b9dd96

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