Mercurial > repo
view bin/whoops @ 11780:381f57214b65 draft
<oerjan> le/rn_append brexit//This command has a known bug where it will repeadly delay itself if not enough force is available.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 11 Apr 2019 05:08:13 +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}»"