Re:Vim prank: alias vim='vim -y'
by longwave on Friday January 07, 2022 @09:35AM
(#29839543)
It appends another sleep each time you start a new shell, so it subtly slows down over time.
[ Parent
| on HN ]
wouldn't it do so exponentially?
The first time it does it once, the second time the statement is there twice so it does it twice, then 4, 8, 16, etc. ?
Re:Vim prank: alias vim='vim -y'
by usrbinbash on Friday January 07, 2022 @10:30AM
(#29840252)
No, because;
echo sleep 0.01 >> ~/.bashrc
adds this to .bashrc; sleep 0.01
It doesn't add itself, so the sleep tie grows linear by 0.01sec each time a shell is opened.No, the entire statement isn't added each time, only the sleep portion.