This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Cygwin Perl system() Invokes exec() Directly?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]