changeset 12093:22a898920ef6 draft

<fizzie> sled /hackenv/bin/!//s|exec ibin|exec $HACKENV/ibin|
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 22:20:56 +0000
parents ceb43c4d37de
children 4b7df91b73b2
files bin/!
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/!	Sat Nov 16 22:19:36 2019 +0000
+++ b/bin/!	Sat Nov 16 22:20:56 2019 +0000
@@ -1,1 +1,4 @@
-interp
\ No newline at end of file
+#!/bin/bash
+CMD=`echo -n "$1" | cut -d' ' -f1`
+ARG="$(echo -n "$1" | cut -d' ' -f2-)"
+exec $HACKENV/ibin/$CMD "$ARG$2"
\ No newline at end of file