Subject: Re: Usability and the default shell
To: Pavel Cahyna <pavel@netbsd.org>
From: Zafer Aydogan <zafer@aydogan.de>
List: tech-userlevel
Date: 01/11/2007 00:20:39
2007/1/10, Pavel Cahyna <pavel@netbsd.org>:
> On Tue, Jan 09, 2007 at 12:57:55PM +0100, Zafer Aydogan wrote:
> > I'm getting following error, after logging in, when using ksh, as the
> > root shell.
> >
> > ksh: /etc/shrc[1]: syntax error: `(' unexpected
> >
> > Workaround is to comment out the first line in /etc/shrc.
>
> The first line is:
> ll(){ ls -l ${1+"$@"}; }
> ?
>
Yes, that line produces the error, if you have /bin/ksh as the shell for root.

Any ideas why ?