Subject: Re: Usability and the default shell
To: None <tech-userlevel@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-userlevel
Date: 01/12/2007 01:11:30
Zafer Aydogan <zafer@aydogan.de> wrote:

> 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 ?

May be you have "ll" already defined/aliases as something in your
/root/.shrc so instead of function defintion ksh sees something else?

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen