Mercurial > repo
changeset 12148:5a30f2c8f891 draft
<oerjan> slbd whoops//s,[(],HACKENV$(,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 18 Nov 2019 02:33:53 +0000 |
parents | 0184b63b6672 |
children | e87bf60ce012 |
files | bin/whoops |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/whoops Mon Nov 18 02:22:24 2019 +0000 +++ b/bin/whoops Mon Nov 18 02:33:53 2019 +0000 @@ -1,1 +1,1 @@ -OLD="$HACKENV/wisdom/$1"; [ -z "$1" ] && OLD="$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»" +OLD="$HACKENV/wisdom/$1"; [ -z "$1" ] && OLD="$HACKENV$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»"