Subject: Re: sh expanding alias in odd place
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-userlevel
Date: 11/02/2001 17:00:06
>Andreas Lohrum (CC:'d) pointed me at this funky problem, which arises
>occasionally when building pkgsrc/devel/pth (with some weird error in
>shtool line 1280, and some appropriate .profile settings).

>Running the script ("x") attached below with the following parameters
>gives:

If you make the case statement:

"a" )
	echo a
	;;

it works as expected.

Aliases are totally evil in anything but an interactive
shell.  I think the script as is, is failing in the prescribed manner
give the alias.

--sjg