Mercurial > repo
annotate bin/interp @ 12265:984c8295238b draft
<b_jonas> slashlearn aoc/Advent of Code (AoC) is a series of programming puzzles that some regulars enjoy, found at "https://adventofcode.com/2019/about".
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 16 Dec 2019 22:49:45 +0000 |
parents | 8e2e8092500d |
children |
rev | line source |
---|---|
11692
d84f4b4245bf
<oerjan> sled bin/interp//s,bin/sh,bin/bash,
HackEso <hackeso@esolangs.org>
parents:
11691
diff
changeset
|
1 #!/bin/bash |
11879
998bedd945f6
<oerjan> ` mv bin/{\\!,interp}
HackEso <hackeso@esolangs.org>
parents:
11692
diff
changeset
|
2 CMD=`echo -n "$1" | cut -d' ' -f1` |
998bedd945f6
<oerjan> ` mv bin/{\\!,interp}
HackEso <hackeso@esolangs.org>
parents:
11692
diff
changeset
|
3 ARG="$(echo -n "$1" | cut -d' ' -f2-)" |
12098
8e2e8092500d
<fizzie> sled /hackenv/bin/interp//s|exec ibin/|exec $HACKENV/ibin/|
HackEso <hackeso@esolangs.org>
parents:
11879
diff
changeset
|
4 exec $HACKENV/ibin/$CMD "$ARG$2" |