Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: localhost.localdomain: ronald set sender to blytkerchan AT users DOT sourceforge DOT net using -f Date: Fri, 17 Oct 2003 15:46:16 +0200 From: Ronald Landheer-Cieslak To: cygwin AT cygwin DOT com Subject: Re: ash does not understand '~' Message-ID: <20031017134616.GB9808@linux_rln.harvest> References: <3F8FE50C DOT 5DBFA9E7 AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3F8FE50C.5DBFA9E7@dessent.net> User-Agent: Mutt/1.4i X-Disclaimer: I had nothing to do with it - I swear! X-loop: linux_rln.harvest On Fri, Oct 17, 2003 at 05:48:12AM -0700, Brian Dessent wrote: > 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 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'. How does that take care of the closing `]' ? rlc -- No-one would remember the Good Samaritan if he had only had good intentions. He had money as well. -- Margaret Thatcher -- 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/