Re:Classic article from Mario Wolczko first appeared on Usen...
by sedatk on Monday July 31, 2023 @07:32PM
(#36950335)
"echo *" just prints "*" on bash unfortunately.
[ Parent
| on HN ]
Re:Classic article from Mario Wolczko first appeared on Usen...
by bryanlarsen on Monday July 31, 2023 @07:44PM
(#36950454)
That's its behaviour in an empty directory, but it works for me on a non-empty directory.
Re:Classic article from Mario Wolczko first appeared on Usen...
by sedatk on Monday July 31, 2023 @07:54PM
(#36950538)
Oh, you're right. Never occurred to me that my home folder would be empty.
Re:Classic article from Mario Wolczko first appeared on Usen...
by hulitu on Tuesday August 01, 2023 @08:30AM
(#36955137)
I presume you don't have a "modern desktop" installed. Hell, even Firefox spams $HOME with "Downloads".
Re:Classic article from Mario Wolczko first appeared on Usen...
by sedatk on Wednesday August 02, 2023 @06:25PM
(#36978596)
You're right, it's WSL; so, just dotfiles.
Re:Classic article from Mario Wolczko first appeared on Usen...
by tp34 on Tuesday August 01, 2023 @12:12AM
(#36952205)
shopt -s dotglob
Re:Classic article from Mario Wolczko first appeared on Usen...
by seanhunter on Tuesday August 01, 2023 @08:00AM
(#36954913)
Yes. Or one lowtech method I use often is `touch ~/-i`. When someone tries to rm -rf * the file called “-i” gets globbed at the front of the arguments and the subsequent command goes into “interactive “ mode meaning it prompts y/n for each file
Re:Classic article from Mario Wolczko first appeared on Usen...
by tpoacher on Wednesday August 02, 2023 @03:08AM
(#36967904)
Nice! Great "bug as a feature" trick!