Subject: RE: Cygwin Perl system() Invokes exec() Directly?
From: "Gerrit P. Haase" <[email-masked]>
To: [email-masked]
Date: Wed, 19 Sep 2001 23:27:12 +0200

Lehr, Matt (GEA, 510425) schrieb am 2001-09-19, 17:10:

>Hello again,
>
> That was quick...
>
>>What is your perl summary (perl-V)?
>
> Please see attached...

Yep, that is o.k.

>>What is pwd?
>
> Hey, you've at least got to give me credit for not falling into that
>trap... :-)
>
>  /usr/bin/perl -e '$x=system("wc",".bashrc");$y=system("wc <
>.bashrc");print"$x $y $!\n";'
> produces
>  5	14	93	.bashrc
>  0 -1 No such file or directory

Strange. Me have (as expected from this nice onliner:
$ /usr/bin/perl -e '$x=system("wc",".bashrc");$y=system("wc <.bashrc");print"$x $y $!\n";'
    211     539    6250 .bashrc
    211     539    6250
0 0

What about permissions?

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/