delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/15/06:01:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 15 Sep 2000 11:00:10 +0100
Message-ID: <6009-Fri15Sep2000110010+0100-starksb@ebi.ac.uk>
X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I);
VM 6.75 under Emacs 20.7.1
From: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
MIME-Version: 1.0
To: "Richard Atterer" <richard DOT atterer AT gulp DOT de>
CC: cygwin AT sources DOT redhat DOT com
Subject: gawk: system() or piping does not work due to no /bin/sh
In-Reply-To: <DFEDIIOHEOKJAKHGAJMHIECACAAA.richard.atterer@gulp.de>
References: <DFEDIIOHEOKJAKHGAJMHIECACAAA DOT richard DOT atterer AT gulp DOT de>

On Friday 15 Sep 00, Richard Atterer writes:
> 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.

Or install the package 'ash', this contains /bin/sh.  This is noted in
the README file and the FAQ.

David


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019