News for hackers. Stuff that matters.
Re:Techniques I Use to Create a Great User Experience for Sh... by ndsipa_pomu on Saturday September 14, 2024 @10:00AM (#41539868)
Also, you'd want to put in a double dash to signify the end of arguments as otherwise someone could set VAR="--no-preserve-root " and truly trash the system. Also, ${VAR} needs to be in double quotes for something as dangerous as a "rm" command:

    rm -rf -- "${VAR}"/*

There are no comments on this comment yet.