Mercurial > repo
annotate bin/# @ 10479:f0f99c1c5cd5
<oerjan> sled bin/#//s/msg/#/g
author | HackBot |
---|---|
date | Tue, 21 Mar 2017 15:19:29 +0000 |
parents | 9811fb0aae76 |
children | 4d6bdc52912d |
rev | line source |
---|---|
10475
3edae8285d40
<oerjan> fetch bin/msg https://hackego.esolangs.org/get/bin/slashlearn
HackBot
parents:
diff
changeset
|
1 sep='//`' |
10479 | 2 [[ "$1" == ?*"$sep"* ]] || { echo 'Usage: `# <comment>'"$sep"'<command>' >&2 ; exit 1; } |
10475
3edae8285d40
<oerjan> fetch bin/msg https://hackego.esolangs.org/get/bin/slashlearn
HackBot
parents:
diff
changeset
|
3 command="${1#*$sep}" |
3edae8285d40
<oerjan> fetch bin/msg https://hackego.esolangs.org/get/bin/slashlearn
HackBot
parents:
diff
changeset
|
4 "${command%% *}" "${command#* }" |