Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Fri, 15 Sep 2000 11:32:13 -0400
To: cygwin@sourceware.cygnus.com
Subject: Re: gawk: system() or piping does not work due to no /bin/sh
Message-ID: <20000915113212.B4739@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sourceware.cygnus.com
References: <DFEDIIOHEOKJAKHGAJMHIECACAAA.richard.atterer@gulp.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <DFEDIIOHEOKJAKHGAJMHIECACAAA.richard.atterer@gulp.de>; from richard.atterer@gulp.de on Fri, Sep 15, 2000 at 11:37:07AM +0200

On Fri, Sep 15, 2000 at 11:37:07AM +0200, Richard Atterer wrote:
>Hello,
>
>I encountered this problem: Executing other programs from within gawk did
>not seem to work, no matter whether you tried it through a pipe or with
>system(). Examples:
>
>gawk 'BEGIN{system("echo foobar")}'
>gawk 'BEGIN{while(("echo foobar"|getline l) >= 1) print l}'
>
>It turns out this is because /bin/sh doesn't exist, an "ln -s bash.exe sh"
>in /bin solved the problem.

The lack of /bin/sh means that your installation is corrupted.

>I installed using setup.exe with downloaded tarballs already present in the
>local directory. It should be noted that setup crashed towards the end the
>first time I ran it (IIRC, before it tried to create the menu entries), but
>it didn't crash on subsequent runs. Sorry for not being able to give more
>detailed information about the crash.

If setup crashed, that explains the problem.  If you can't provide any details
then this will have to remain a mystery, I guess.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

