view bin/whoops @ 11315:854220114ed2

<oerjan> addquote <ais523> b_jonas: hmm, it\'s fairly surprising that you can make a coherent esolang whose primary feature is that it wasn\'t written by Donald Knuth
author HackBot
date Fri, 12 Jan 2018 01:57:49 +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}»"