On Mon, Nov 01, 2021 at 11:47:40AM +1100, Cameron Simpson wrote: > On 17Oct2021 15:04, Oskari Pirhonen <xxc3ncore...@gmail.com> wrote: > >#! /bin/bash > > I much prefer: > #!/bin/sh > absent some special reason. /bin/sh exists on all POSIX systems, and > bash need not (and if it does, it is not always in /bin).
I agree wholeheartedly, and FWIW invoking as bash changes the behavior of scripts in subtle but possibly undesireable ways. Probably won't affect most people but if you're a "power user" and use certain features of the shell (such as for example setting ENV) it can... The only downside is these days on many systems /bin/sh is dash which annoyingly behaves differently than bash, again in mostly subtle ways, but one common one you might hit is options for the echo command. > >eval $(which mutt) "$@" && clear > > Others have wondered about the "which". I wonder about the "eval", which > is just asking for attack (or unhappy accidents). Please try not to use > it. Agree on this as well. Someone commented that which is deprecated on debian unstable--this seems like a pointless and stupid change. Every Unix system I can think of has had a which command going back maybe 40 years... deprecating it has the potential to break a lot of things for as far as I can see no practical reason whatsoever. This is not progress. On Mon, Nov 01, 2021 at 11:44:25AM +1100, Cameron Simpson wrote: > On 22Oct2021 10:30, Kevin J. McCarthy <ke...@8t8.us> wrote: > [...] > >After 25 years of this behavior, is clearing the alternate screen > >really now a security or privacy issue; against an attacker who > >evidently has access to your terminal? Hopefully we've established that it isn't. > That said, and ignoring the alternate screen, I've noted with annoyance > that "clear" in iterm doesn't erase. I don't think that's actually true--at least it isn't for me. It absolutely does clear the terminal... But what it does not do is clear the scroll-back buffer. I would prefer it did, also. It may have a setting for that which I haven't discovered. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
signature.asc
Description: PGP signature