SVR4 /bin/sh BUG

Frank J. Edwards crash at ckctpa.UUCP
Thu Jun 20 02:37:13 AEST 1991


In article <2671 at amix.commodore.com> ag at amix.commodore.com (Keith Gabryelski) writes:
>FYI, csh has the a shell variable named `shell' that keep the name of
>shell to interpret non-system executable commands (ie, shell scripts).
>If you typically use csh for interactive use and another (Bourne?) for
>shell scripts use:
>
>	set shell=/bin/sh

Yes, but some csh implementations also require

	% alias shell=/bin/sh

which is prepended to any command line which attempts to exec() a file
which fails; the alias is prepended and the exec() is tried again.

Of course, this breaks other things in the shell (sigh).  Oh well, good
riddance to csh!

>Pax, Keith
>-- 
>Keith Gabryelski                                 Advanced Products Group
>ag at amix.commodore.com                                 ...!cbmvax!amix!ag

I did notice, though, that you Amix folks have fixed the SVR4 csh bug
concerning changing directory two levels into a symbolic link, and
then backing out again with "cd .."  My question is, "why in the world
did csh even care?!"  (Er, rhetorical question.  One does not ask _why_
the C shell does what it does...)
-- 
Frank J. Edwards		|  "I did make up my own mind -- there
2677 Arjay Court		|   simply WASN'T ANY OTHER choice!"
Palm Harbor, FL  34684-4504	|		-- Me
Phone (813) 786-3675 (voice)	|    Only Amiga Makes It Possible...



More information about the Comp.unix.amiga mailing list