delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/19/17:39:41

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: cygwin AT cygwin DOT com
Date: Wed, 19 Sep 2001 23:27:12 +0200
MIME-Version: 1.0
Subject: RE: Cygwin Perl system() Invokes exec() Directly?
Reply-to: gp AT familiehaase DOT de
Message-ID: <3BA929D0.15327.2F5FE81C@localhost>
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, 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019