2 ms·
POSIX requires that aliases be observed in the context of a shell script, but there is a trap here. When bash is called as /bin/sh, it will be in POSIX mode, a
by chasil 4y ago
POSIX requires that aliases be observed in the context of a shell script, but there is a trap here.
When bash is called as /bin/sh, it will be in POSIX mode, and will honor those aliases.
When called as anything else or when otherwise not in POSIX mode, those aliases will fail.
Bash was around for a decade before the POSIX shell standard was defined, so there is legacy baggage.