The documentation says:

'ENV'
     Similar to 'BASH_ENV'; used when the shell is invoked in POSIX Mode
     (*note Bash POSIX Mode::).

However, as described elsewhere in the manual, BASH_ENV is used
specifically for non-interactive shells, whereas ENV is used specifically
for interactive shells. From the quoted section above, one might get the
erroneous impression that ENV is just like BASH_ENV but for POSIX mode.

If I've not misunderstood, maybe a little more explanation in the quoted
section would be a good idea? Even just changing "invoked" to "invoked
interactively". Although that then runs the risk of implying that BASH_ENV
is also used in interactive mode. Alternatively, remove "Similar to
'BASH_ENV';".

-- 
https://rrt.sc3d.org
  • Confusing doc... Reuben Thomas via Bug reports for the GNU Bourne Again SHell
    • Re: Conf... Chet Ramey
      • Re: ... Reuben Thomas via Bug reports for the GNU Bourne Again SHell

Reply via email to