annotate bin/! @ 12121:3d6b560fc682 draft

<fizzie> sled /hackenv/bin/whoq//s|quotes|${HACKENV-/hackenv}/quotes|
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 23:13:49 +0000
parents 22a898920ef6
children a8288b8b34ca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"