This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Cygwin Perl system() Invokes exec() Directly?
- To: "Lehr, Matt (GEA, 510425)" <MATT dot LEHR at APPL dot GE dot COM>
- Subject: Re: Cygwin Perl system() Invokes exec() Directly?
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- Date: Wed, 19 Sep 2001 22:29:50 +0200
- CC: cygwin at cygwin dot com
- Organization: Esse keine toten Tiere
- Reply-to: gp at familiehaase dot de
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/