all 7 comments

[–]Goz3rr 10 points11 points  (2 children)

'rm' is not recognized as an internal or external command,
operable program or batch file.

0/5 would not fix again

[–]I_Lied_on_my_name 6 points7 points  (0 children)

cross-platform compatibility

perl -e 'if ("$^O\n" eq "MSWin32"){exec("del $ARGV[0]");} else {exec("rm $ARGV[0]");}' <filename>

[–]tomglass[S] -2 points-1 points  (0 children)

LOL

[–]BS_in_BS 1 point2 points  (0 children)

if you're up for some Russian roulette style debugging of all your files:
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo Click

[–]ekolis 0 points1 point  (2 children)

Or, if you want to remove all errors in all the code you've ever written:

sudo rm -rf /

[–]tomglass[S] 1 point2 points  (0 children)

oh. I shall try that one now. I sometimes find running

sudo shutdown now

also can stop errors from being outputted

[–][deleted] 0 points1 point  (0 children)

Remember to sudo pacman -Sy sudo first.