News for hackers. Stuff that matters.
Re:In Praise Of –Dry-Run by Joker_vD on Saturday January 31, 2026 @10:13PM (#46843299)

    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.
Re:In Praise Of –Dry-Run by digiown on Saturday January 31, 2026 @10:22PM (#46843328)
set -o noclobber