Mercurial > repo
view bin/whoops @ 11637:2cf2920c480d draft
<int-e> ` rm wisdom/utf8; ln wisdom/{utf-8,utf8}
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 25 Oct 2018 13:17:24 +0000 |
parents | ad82afc321ca |
children | 8ec9cd952dd5 |
line wrap: on
line source
OLD="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}»"