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: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
Organization: | Esse keine toten Tiere |
To: | "Lehr, Matt (GEA, 510425)" <MATT DOT LEHR AT APPL DOT GE DOT COM> |
Date: | Wed, 19 Sep 2001 22:29:50 +0200 |
MIME-Version: | 1.0 |
Subject: | Re: Cygwin Perl system() Invokes exec() Directly? |
Reply-to: | gp AT familiehaase DOT de |
CC: | cygwin AT cygwin DOT com |
Message-ID: | <3BA91C5E.29187.2F2B61DD@localhost> |
In-reply-to: | <3DC3FF95C367D411B47E00D0B73E4B38F80847@ap3expr8applge.appl.ge.com> |
X-mailer: | Pegasus Mail for Win32 (v3.12cDE) |
X-Hops: | 1 |
X-Sender: | 320081107336-0001 AT t-dialin DOT net |
Lehr, Matt (GEA, 510425) schrieb am 2001-09-19, 15:40: Hi Matt, > Seems like the Cygwin perl system() function calls exec() directly >rather than passing the command to the shell? > > For example: > > Under Cygwin perl: > /usr/bin/perl -e '$x=system("wc < .bashrc");print"$x $!\n";' > produces the output: > -1 No such file or directory It does it for me: $ /usr/bin/perl -e '$x=system("wc < .bashrc");print"$x $!\n";' 211 539 6250 0 What is your perl summary (perl-V)? What is pwd? > Under ActiveState perl: > /cygdrive/e/Perl/bin/perl -e '$x=system("wc < >.bashrc");print"$x $!\n";' > produces the output (as expected): > 5 14 93 > 0 > > Thanks for your efforts... Version information appears below... Gerrit -- =^..^= -- 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 |