This is the mail archive of the
mailing list for the Cygwin project.
Re: ash does not understand '~'
On Fri, Oct 17, 2003 at 02:36:54PM +0200, J?rg Schaible wrote:
>Corinna Vinschen wrote on Friday, October 17, 2003 1:04 PM:
>> On Fri, Oct 17, 2003 at 12:37:10PM +0200, J?rg Schaible wrote:
>>> BTW: It does also not know the "[ ]" syntax for a built-in test, you
>>> always have to use "test":
>>> if test -f /etc/hosts; then
>>> echo "/etc/hosts exist!"
>> Beep. Wrong. It knows [ ]
>>> and you cannot combine export with an assignment, you have to write
>>> separate statements:
>>> export VARIABLE
>> Beep. Wrong, too. export var=value is a vaild bourne shell syntax.
>Did that change at some point? I remember having really big problems
>writing scripts running on a on Solaris, Linux and Cygwin some years
>ago <g> and IIRC it was basically because of ash at that time ...
It must have changed because I recally ash not accepting that syntax,
too and I know that older versions of /bin/sh don't like it. ash does
understand it now, though.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html