Re:Shell Style Guide
by floatboth on Tuesday May 15, 2018 @11:17AM
(#17074558)
/bin/sh shouldn't be a C shell, it's always a POSIX-compatible shell IIRC
[ Parent
| on HN ]
In the wild, hopefully not, but I do remember coming across /bin/sh executing csh in an obscure RTOS-ish / proprietary flavor of Linux that we were prototyping at a previous employer. Would've been around 2008. I can't remember the variant, but I remember being caught off-guard by it.
AFAIK /bin/sh is standard; if you cannot trust that /bin/sh is a Bourne-like sh, you might as well have to assume /usr/bin/env can not be what it was meant to be too.
Re:Shell Style Guide
by peterwwillis on Tuesday May 15, 2018 @12:14PM
(#17075058)
I suppose you're right, though the main point is it may not have Bourne-again extensions