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 Message-ID: <00a501c1df09$fec72bd0$cd8a9dc0@uk.aonix.com> From: "Cliff Hones" To: References: <000601c1df07$aa056550$3f891581 AT proxy> Subject: Re: question about local variables in bash for cygwin Date: Mon, 8 Apr 2002 15:29:55 +0100 Organization: Aonix Europe Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Evan Teran writes: > Hello I have cygwin installed on my WinXP box and am loving it. However > I just noticed today that when I tried to use the local keyword in my > bash script it gives me the error "local: not found". The script works > on a RedHat box as expected so I would think that this is a cygwin/bash > problem. On Linux /bin/sh is normally bash, but on Cygwin it is ash, and ash does not support 'local'. Change the first line to #!/bin/bash and it should work. Cliff -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/