On 7/19/06, Glenn Fowler <gsf at research.att.com> wrote:
>
> > The original patch (attached here as
> > "ksh93_ksh_kshrc_and_bash_bashrc_prototype_diff.txt" for reference) also
> > added /etc/bash.bashrc and made it a softlink to /etc/ksh.kshrc, copying
> > the default used on other operating systems (such as Linux and *BSD
> > variants) - but after some discussion with Mike Kupfer I removed the
> > bash parts as this should be part of another RFE (which may include
> > adding support for /etc/sh.shrc to the bourne shell (and then makes
> > /etc/ksh.kshrc and /etc/bash.bashrc soft links to /etc/sh.shrc (because
> > it is usefull to have ONE configuration file for these shells instead of
> > three))).
>
> isn't that "usefull to have ONE configuration file for these shells"
> /etc/profile?
/etc/profile and /etc/ksh.kshrc are different things. /etc/profile is
for login shells and only for them. /etc/ksh.kshrc is used for all
interactive shells. This is important for things like xterm, kconsole,
dtterm etc where the shell embedded is not a login shell. Another case
is /usr/bin/newgrp and /usr/bin/newtask which launch a new shell which
is not a login shell.
> also, the patch to force /etc/ksh.kshrc checks for a vendor name rather than
> a feature -- we prefer to do that only as a last resort
> a more appropriate place for vendor specific settings would be in the vendor
> specific makefile(s) that set up compile time options
> in this case -DSHOPT_SYSRC should do what you want
> if it doesn't then let me know so I can make it work
I filed he patch because there is no way for a normal, unprivileged
user to enable the feature without hacking the code. Both
/etc/bash.bashrc and /etc/ksh.kshrc can only be created by root and no
one else.
--
// Martin Schaffstall
// EMail: martin.schaffstall at googlemail.com
\\ //
\X/