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 content-class: urn:content-classes:message Subject: RE: ash does not understand '~' MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Date: Fri, 17 Oct 2003 14:36:54 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: =?iso-8859-1?Q?J=F6rg_Schaible?= To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h9HCbUSw024126 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 > >> and you cannot combine export with an assignment, you have to write >> separate statements: >> >> VARIABLE=test >> export VARIABLE > > Beep. Wrong, too. export var=value is a vaild bourne shell syntax. > > 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 ... Regards, Jörg -- 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/