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

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
Date: Wed, 19 Sep 2001 17:19:11 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Cc: matt DOT lehr AT appl DOT ge DOT com
Subject: Re: Cygwin Perl system() Invokes exec() Directly?
Message-ID: <20010919171911.B18115@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, matt DOT lehr AT appl DOT ge DOT com
References: <3DC3FF95C367D411B47E00D0B73E4B38F80848 AT ap3expr8applge DOT appl DOT ge DOT com>
Mime-Version: 1.0
In-Reply-To: <3DC3FF95C367D411B47E00D0B73E4B38F80848@ap3expr8applge.appl.ge.com>
User-Agent: Mutt/1.3.21i

On Wed, Sep 19, 2001 at 05:10:52PM -0400, Lehr, Matt (GEA, 510425) wrote:
>	That was quick...
>
>>What is your perl summary (perl-V)?
>
>	Please see attached...
>
>>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

How about the trap of not having 'wc' in your path?  Try explicitly using
/bin/wc in the above example.

cgf

--
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