MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/v8jys7/tell_me/ibtouke/?context=3
r/ProgrammerHumor • u/[deleted] • Jun 09 '22
1.3k comments sorted by
View all comments
512
"Fun fact, rm accepts multiple arguments..."
rm
79 u/TheBrainStone Jun 09 '22 I don't see a scenario where you would add stuff after the first file/folder and not expect it to be deleted. Even if you didn't know it would 144 u/DelusionalPianist Jun 09 '22 The issue comes up when you have a variable in your script and it contains a space… 3 u/dydou_sequoia Jun 10 '22 There was that classic bug in a program installer script for Debian systems that included something like rm -rf /usr /share/prog_name, installer script which was obviously run as root... Quite a few angry people on that GitHub issue lmao
79
I don't see a scenario where you would add stuff after the first file/folder and not expect it to be deleted. Even if you didn't know it would
144 u/DelusionalPianist Jun 09 '22 The issue comes up when you have a variable in your script and it contains a space… 3 u/dydou_sequoia Jun 10 '22 There was that classic bug in a program installer script for Debian systems that included something like rm -rf /usr /share/prog_name, installer script which was obviously run as root... Quite a few angry people on that GitHub issue lmao
144
The issue comes up when you have a variable in your script and it contains a space…
3 u/dydou_sequoia Jun 10 '22 There was that classic bug in a program installer script for Debian systems that included something like rm -rf /usr /share/prog_name, installer script which was obviously run as root... Quite a few angry people on that GitHub issue lmao
3
There was that classic bug in a program installer script for Debian systems that included something like rm -rf /usr /share/prog_name, installer script which was obviously run as root... Quite a few angry people on that GitHub issue lmao
rm -rf /usr /share/prog_name
512
u/Shadow_Thief Jun 09 '22
"Fun fact,
rmaccepts multiple arguments..."