Incorrect documentation about /etc/profile

Andras Farkas <[email protected]> Mon, 13 Dec 2021 18:18:07 -0800
Newsgroups gmane.os.netbsd.documentation
Message-ID <CAA0nTRuy2CYBqCcpY0moN+yE-buOhtrF0S32wAqMfaf6kVPRRw@mail.gmail.com>
On
https://netbsd.org/docs/misc/index.html#setting-something-for-all-users
the following text is incorrect:
> This is run every time a new shell is opened, before any .profile in the user's home directory.
/etc/profile is only read by login shells, for both sh and ksh.  This
is the actual behavior, and also the documented behavior in the man
pages.
This could probably be changed to:
> This is run every time a login shell is opened, before any .profile in the user's home directory.

I think "started" could read better than "opened", though that change
isn't as necessary.  (that could also apply to a later line about
/etc/csh.cshrc too)