delorie.com/archives/browse.cgi | search |
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 |
From: | "Richard Atterer" <richard DOT atterer AT gulp DOT de> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | gawk: system() or piping does not work due to no /bin/sh |
Date: | Fri, 15 Sep 2000 11:37:07 +0200 |
Message-ID: | <DFEDIIOHEOKJAKHGAJMHIECACAAA.richard.atterer@gulp.de> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
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. 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. This happened with an up-to-date Cygwin which I downloaded only yesterday (14 Sep 2000). Cheers, Richard -- Richard Atterer - richard DOT atterer AT gulp DOT de GULP Information Services GmbH - http://www.gulp.de GULP - Das Portal für IT Projekte -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |