From: "Gerrit P. Haase" <gp@familiehaase.de>
To: "Lehr, Matt (GEA, 510425)" <MATT.LEHR@APPL.GE.COM>
Cc: cygwin@cygwin.com
Subject: Re: Cygwin Perl system() Invokes exec() Directly?
Date: Wed, 19 Sep 2001 13:30:00 -0000 [thread overview]
Message-ID: <3BA91C5E.29187.2F2B61DD@localhost> (raw)
In-Reply-To: <3DC3FF95C367D411B47E00D0B73E4B38F80847@ap3expr8applge.appl.ge.com>
Lehr, Matt (GEA, 510425) schrieb am 2001-09-19, 15:40:
Hi Matt,
> Seems like the Cygwin perl system() function calls exec() directly
>rather than passing the command to the shell?
>
> For example:
>
> Under Cygwin perl:
> /usr/bin/perl -e '$x=system("wc < .bashrc");print"$x $!\n";'
> produces the output:
> -1 No such file or directory
It does it for me:
$ /usr/bin/perl -e '$x=system("wc < .bashrc");print"$x $!\n";'
211 539 6250
0
What is your perl summary (perl-V)?
What is pwd?
> Under ActiveState perl:
> /cygdrive/e/Perl/bin/perl -e '$x=system("wc <
>.bashrc");print"$x $!\n";'
> produces the output (as expected):
> 5 14 93
> 0
>
> Thanks for your efforts... Version information appears below...
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/
next prev parent reply other threads:[~2001-09-19 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-19 12:41 Lehr, Matt (GEA, 510425)
2001-09-19 13:30 ` Gerrit P. Haase [this message]
2001-09-19 14:11 Lehr, Matt (GEA, 510425)
2001-09-19 14:19 ` Christopher Faylor
2001-09-19 14:39 Gerrit P. Haase
2001-09-19 14:59 Lehr, Matt (GEA, 510425)
2001-09-19 23:34 ` David Starks-Browning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BA91C5E.29187.2F2B61DD@localhost \
--to=gp@familiehaase.de \
--cc=MATT.LEHR@APPL.GE.COM \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).