Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/