Mercurial > repo
changeset 12061:b86ce25c80f2 draft
<fizzie> sled /hackenv/bin/makelist//s|bin/|$HACKENV/bin/|g
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 16 Nov 2019 21:45:35 +0000 |
parents | a7268c15a964 |
children | 5e74c372b097 |
files | bin/makelist |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/makelist Sat Nov 16 21:45:28 2019 +0000 +++ b/bin/makelist Sat Nov 16 21:45:35 2019 +0000 @@ -1,1 +1,1 @@ -if [[ "$1" == *" "* ]]; then exec makelist $@; fi; name="$1"; file="$HACKENV/bin/$name"; makelistlist "$name"; shift; cp bin/emptylist "$file"; for n in "$@"; do echo "$n" >> "$file"; done +if [[ "$1" == *" "* ]]; then exec makelist $@; fi; name="$1"; file="$HACKENV/$HACKENV/bin/$name"; makelistlist "$name"; shift; cp $HACKENV/bin/emptylist "$file"; for n in "$@"; do echo "$n" >> "$file"; done