Mercurial > repo
annotate bin/! @ 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 | 49e31fac908c |
children | a8288b8b34ca |
rev | line source |
---|---|
12093
22a898920ef6
<fizzie> sled /hackenv/bin/!//s|exec ibin|exec $HACKENV/ibin|
HackEso <hackeso@esolangs.org>
parents:
4866
diff
changeset
|
1 #!/bin/bash |
22a898920ef6
<fizzie> sled /hackenv/bin/!//s|exec ibin|exec $HACKENV/ibin|
HackEso <hackeso@esolangs.org>
parents:
4866
diff
changeset
|
2 CMD=`echo -n "$1" | cut -d' ' -f1` |
22a898920ef6
<fizzie> sled /hackenv/bin/!//s|exec ibin|exec $HACKENV/ibin|
HackEso <hackeso@esolangs.org>
parents:
4866
diff
changeset
|
3 ARG="$(echo -n "$1" | cut -d' ' -f2-)" |
22a898920ef6
<fizzie> sled /hackenv/bin/!//s|exec ibin|exec $HACKENV/ibin|
HackEso <hackeso@esolangs.org>
parents:
4866
diff
changeset
|
4 exec $HACKENV/ibin/$CMD "$ARG$2" |