aliases not supported by default in non-interactive mode...but POSIX req
From:
L A Walsh
Subject:
aliases not supported by default in non-interactive mode...but POSIX required?
Date:
Thu, 24 Aug 2017 18:49:08 -0700
User-agent:
Thunderbird
I was directed to the POSIX section on aliases and it doesn't
say they are only to be enabled during interactive mode, but
seem to be a required compatibility feature even when running
non-interactively:
=====
2.3.1 Alias Substitution
^[UP XSI <javascript:open_code('UP XSI')>] [Option Start] The processing
of aliases shall be supported on all XSI-conformant systems or if the
system supports the User Portability Utilities option (and the rest of
this section is not further marked for these options). [Option End]
====
However, in testing posix and non-posix modes in bash 4.4.12, I don't
see aliases being enabled in scripts.
To be POSIX conformant, wouldn't they have to be on?
Why do some people say aliases shouldn't be used, when they are
POSIX required for compatibility?