Remix clone Hacker News
new
|
show
|
ask
|
jobs
Github
▲
Joker_vD
11 hours ago
if [ -n "$DRY_RUN" ] ; then alias rm='echo rm' alias cp='echo cp' fi
Of course, output redirects will still overwrite the files, since the shell does it and IIRC this behaviour can't be changed.
▲
digiown
11 hours ago
|
parent
[-]
set -o noclobber
▲
7 hours ago
|
parent
[-]
[deleted]