This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
gawk: system() or piping does not work due to no /bin/sh
- To: "Richard Atterer" <richard dot atterer at gulp dot de>
- Subject: gawk: system() or piping does not work due to no /bin/sh
- From: David Starks-Browning <starksb at ebi dot ac dot uk>
- Date: Fri, 15 Sep 2000 11:00:10 +0100
- CC: cygwin at sources dot redhat dot com
- References: <DFEDIIOHEOKJAKHGAJMHIECACAAA.richard.atterer@gulp.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@sourceware.cygnus.com