view bin/whoops @ 11536:3548980f4b00 draft

<oerjan> qued s,ed bin,wd ../bin,
author HackEso <hackeso@esolangs.org>
date Thu, 26 Apr 2018 22:00:27 +0100
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}»"