News for hackers. Stuff that matters.
Re:Classic article from Mario Wolczko first appeared on Usen... by throwbadubadu on Monday July 31, 2023 @03:17PM (#36947471)
> Have you ever left your terminal logged in, only to find when you came back to it that a (supposed) friend had typed "rm -rf ~/*" and was hovering over the keyboard with threats along the lines of "lend me a fiver 'til Thursday, or I hit return"?

Wow that is really nasty, the most we did was put confusing backgrounds in, or cronjob a say "xxx is yyy" and have a laugh in the next meeting :)

Re:Classic article from Mario Wolczko first appeared on Usen... by tiffanyg on Monday July 31, 2023 @08:16PM (#36950696)
Obviously you're not a disciple of the BofH ...

https://bofh.bjash.com/bofh/bofh4.html

;)

Re:Classic article from Mario Wolczko first appeared on Usen... by dang on Monday July 31, 2023 @04:06PM (#36948043)
Related:

Unix Recovery Legend (1986) - https://news.ycombinator.com/item?id=25491790 - Dec 2020 (97 comments)

Unix Recovery Legend (1986) - https://news.ycombinator.com/item?id=10160417 - Sept 2015 (60 comments)

Unix Recovery Legend (1986) - https://news.ycombinator.com/item?id=7892471 - June 2014 (52 comments)

Unix recovery legend - https://news.ycombinator.com/item?id=1212051 - March 2010 (83 comments)

Re:Classic article from Mario Wolczko first appeared on Usen... by jimmysoda on Monday July 31, 2023 @04:41PM (#36948472)
Deja vu all over again
Re:Classic article from Mario Wolczko first appeared on Usen... by bastardoperator on Monday July 31, 2023 @04:43PM (#36948504)
The internet repeats itself
Re:Classic article from Mario Wolczko first appeared on Usen... by BizarroLand on Monday July 31, 2023 @05:53PM (#36949404)
In the dictionary under "redundant" it says, "See Redundant"
Re:Classic article from Mario Wolczko first appeared on Usen... by tiffanyg on Monday July 31, 2023 @08:08PM (#36950645)
Hmm, that seems more apt for "recursion".

For redundant, how about -

Redundant, a.: Redundant

I.e., just "instantiate", don't do a "jmp" and all that kind of stuff, right? :)

Re:Classic article from Mario Wolczko first appeared on Usen... by fuzztester on Monday July 31, 2023 @10:04PM (#36951463)
>Hmm, that seems more apt for "recursion".

https://www.google.com/search?q=recursion

Re:Classic article from Mario Wolczko first appeared on Usen... by BizarroLand on Tuesday August 01, 2023 @07:50PM (#36964933)
Well, you can say that again
Re:Classic article from Mario Wolczko first appeared on Usen... by janvdberg on Monday July 31, 2023 @04:59PM (#36948738)
More like an evergreen. The thing with evergreens is that there will always be someone who will encounter it for the very first time.
Re:Classic article from Mario Wolczko first appeared on Usen... by ohjeez on Monday July 31, 2023 @05:36PM (#36949218)
And that is perfectly okay.
Re:Classic article from Mario Wolczko first appeared on Usen... by BizarroLand on Monday July 31, 2023 @05:54PM (#36949410)
Relevant XKCD: https://xkcd.com/1053/
Re:Classic article from Mario Wolczko first appeared on Usen... by fuzztester on Monday July 31, 2023 @06:17PM (#36949646)
>Deja vu all over again

"I'm a big fan of small utilities."

- That's a quote I made up in imitation of Yogi Berra's quotes, which I'm a fan of.

https://en.m.wikipedia.org/wiki/Yogi_Berra

Re:Classic article from Mario Wolczko first appeared on Usen... by dang on Monday July 31, 2023 @08:19PM (#36950718)
Re:Classic article from Mario Wolczko first appeared on Usen... by tonyg on Monday July 31, 2023 @05:00PM (#36948749)
I wonder whether gnuemacs of the time had the ability to create directories from Emacs lisp.
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.
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!
Re:Classic article from Mario Wolczko first appeared on Usen... by raldi on Tuesday August 01, 2023 @01:51PM (#36959668)
What version of bash do you see this happening on? Mine works as expected.
Re:Classic article from Mario Wolczko first appeared on Usen... by sedatk on Tuesday August 01, 2023 @02:57PM (#36960758)
I happened to try it in a directory with only dotfiles apparently.
Re:Classic article from Mario Wolczko first appeared on Usen... by DonHopkins on Tuesday August 01, 2023 @11:05AM (#36956913)
Some doofus did a newfs.