On 9/10/17 11:11 AM, Stephane Chazelas wrote:
> When running bash as:
>
> bash -s foo bar
>
> "$@" is not available inside .bashrc. Same for $ENV (POSIX
> conformance issue?), $BASH_ENV, or ~/.bash_profile (with bash
> --login -s).
>
> In the case of bash -c, that also affects $0.
Bash has always behaved like this, and it's not a Posix conformance
issue. Is there a compelling reason to change it other than compatibility
with other shells?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/