delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sat, 21 Sep 2002 18:37:27 -0700 (Pacific Daylight Time) |
From: | Michael A Chase <mchase AT ix DOT netcom DOT com> |
Subject: | Re: Bash local builtin and redirection problems |
To: | Ray Pimm <r DOT pimm AT uq DOT net DOT au>, cygwin AT cygwin DOT com |
Message-ID: | <Mahogany-0.64.2-3988-20020921-183727.00@MCHASE-COMPAQ> |
MIME-Version: | 1.0 |
References: | <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020922103312 DOT 00a6a850 AT fox DOT uq DOT net DOT au> |
In-Reply-To: | <5.0.2.1.0.20020922103312.00a6a850@fox.uq.net.au> |
On Sun, 22 Sep 2002 11:00:14 +1000 Ray Pimm <r DOT pimm AT uq DOT net DOT au> wrote: > I have successfully installed Cygwin on Windows 2000 SP3. However, when I > attempt to run a bash shell script that works fine under Linux, two > problems occur. > > 1. The bash "local" builtin does not seem to work. Error message is "local: > not found". > > 2. Both shorthand formats "&>file" and ">&file" for redirecting standard > output and standard error do not work. However, the longhand equivalent > ">file 2>&1" does work. > > Strangely, both of the above features work from the bash command line (but > not from a shell script). > > Cygwin version is 1.3.12-4. > > Bash version is 2.05b-5. An earlier version 2.05a-3 also fails. What is in your script's #! line? /bin/bash != /bin/sh, sh is actually ash, not bash. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |