Subject: Re: ash does not understand '~'
From: Brian Dessent <[email-masked]>
To: [email-masked]
Date: Fri, 17 Oct 2003 05:48:12 -0700

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!"
> >> fi
> >
> > Beep.  Wrong.  It knows [ ]
> >
> > Corinna

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

I thought this was resolved by making '/bin/[' a symlink to /bin/test. 
This gives the appearance of the shell supporting [ ] even though it's
really just running a program just as if you had used 'test'.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/