annotate bin/rm-p @ 12436:a626721f5556 draft

<b_jonas> python3 -cn="/hackenv/bin/("; s=open(n).read(); s=s.replace(\' canary\',\' -- "$HACKENV/canary"\'); open(n,"w").write(s); print(s);
author HackEso <hackeso@esolangs.org>
date Sat, 11 Dec 2021 21:49:11 +0000
parents 6dd82149bba6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11426
6dd82149bba6 <oerjan> slbd rm-p//s, ;,; exit 0;,
HackBot
parents: 11418
diff changeset
1 rm "$1" && { rmdir -p "$(dirname "$1")" 2>/dev/null; exit 0; }