On Sat, Sep 28, 2024 at 10:55:06AM -0700, Greg A. Woods wrote: > > Well, I'll be. I don't remember ever using "test -t"! I think I must > have skipped over it entirely all these years! So I now have: > > if [ -t 0 -a -t 2 -a "$0" = "$SHELL" ]; then > _interactive=true > fi >
SHELL is set by ksh and not by sh (sh handles NETBSD_SHELL), if I'm not mistaken? -- Thierry Laronde <tlaronde +AT+ kergis +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C