Mercurial > repo
view bin/whoops @ 11191:68bceb27eddd
<shachaf> le////rn `2017//Not confusingly not the obvious generalization of `1.
author | HackBot |
---|---|
date | Fri, 15 Sep 2017 01:53:07 +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}»"