On 7/11/06, Roland Mainz <roland.mainz at nrubsig.org> wrote:
> Martin Schaffstall wrote:
> > The following patch enables ksh on Solaris/SunOS to source
> > /etc/ksh.kshrc for interactive logins like it is done on Linux:
> > #####CUT#HERE########CUT#HERE########CUT#HERE####
> > --- ./src/cmd/ksh93/features/options Fri Mar 25 21:37:14 2005
> > +++ ./src/cmd/ksh93/features/options Mon Jul 10 14:06:36 2006
> > @@ -33,7 +33,7 @@
> > option PFSH $?
> > /bin/test ! -l . 2> /dev/null
> > option TEST_L $?
> > - test -f /etc/ksh.kshrc -o -f /etc/bash.bashrc &&
> > + test -f /etc/ksh.kshrc -o -f /etc/bash.bashrc -o "`uname -s`"
> > = "SunOS" &&
> > option SYSRC 0
> > test -f /bin/universe && univ=`/bin/universe` > /dev/null 2>&1
> > -a ucb = "$univ"
> > option UCB $?
> > #####CUT#HERE########CUT#HERE########CUT#HERE####
>
> I've commited http://polaris.blastwave.org/changeset/318 to enable
> SHOPT_SYSRC and add /etc/ksh.kshrc (April: yes, I know... I shouldn't
> add new stuff - but this was a cheap way to enable a default editor mode
> (which was one of the top features requested) without violating the
> POSIX standards).
Roland, Thank you! :) :)
--
// Martin Schaffstall
// EMail: martin.schaffstall at googlemail.com
\\ //
\X/