public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Lehr, Matt (GEA, 510425)" <MATT.LEHR@APPL.GE.COM>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Cygwin Perl system() Invokes exec() Directly?
Date: Wed, 19 Sep 2001 12:41:00 -0000	[thread overview]
Message-ID: <3DC3FF95C367D411B47E00D0B73E4B38F80847@ap3expr8applge.appl.ge.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

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





Hello,


        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


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


                                - Matt


 


cygcheck.out
--
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/


[-- Attachment #2: cygcheck.out --]
[-- Type: text/x-Algol68, Size: 5356 bytes --]


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Sep 19 15:18:39 2001

WinNT Ver 4.0 build 1381 Service Pack 5

Path:	/usr/local/bin
	/usr/bin
	/bin
	/cygdrive/c/WINNT/system32
	/cygdrive/c/WINNT
	/cygdrive/c/DMI/bin
	/cygdrive/c/NETMANAG.32
	/cygdrive/c/WINNT/System32/WBEM
	/cygdrive/c/WINNT/system32/nls
	/cygdrive/c/WINNT/system32/nls/English
	/cygdrive/z
	/cygdrive/w/W31
	/cygdrive/k/O7.16/BIN
	/cygdrive/k/O7.32/BIN
	Z
	.
	/cygdrive/c/Program Files/DevStudio/Vss/WIN32

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/home/Administrator'
USER = `Administrator'
MAKE_MODE = `unix'
HOME = `/home/Administrator'

NUMBER_OF_PROCESSORS = `1'
PROMPT = `$P$G'
LOGONSERVER = `\\AP3PC01APPLGE'
BASELINE = `$/Engineering/Edison Development Team/Edison/04 Implementation/01 Design Guidance/Source Code/Prototype'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
COMSPEC = `C:\WINNT\system32\cmd.exe'
NWLANGUAGE = `ENGLISH'
SYSTEMDRIVE = `C:'
HOSTNAME = `NT101991APPLGE'
PROCESSOR_REVISION = `080a'
LOGIN_NAME = `L510425'
_USR = `M:'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
COMPUTERNAME = `NT101991APPLGE'
!E: = `E:\cygwin\bin'
WINDIR = `C:\WINNT'
USERPROFILE = `C:\WINNT\Profiles\l510425'
!S: = `S:\'
PS1 = `\[^[]0;\w\a\w\[^[[0m$^[[32m\] '
HOMESHARE = `\\ap1fs01\users'
SMS_LOCAL_DIR_USER = `C:\WINNT'
VISUAL = `emacs'
MACHTYPE = `i686-pc-cygwin'
!H: = `H:\'
PC_MODEL = `DELL_GX110'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 10, GenuineIntel'
WIN32DMIPATH = `C:\DMI\'
_SYSD = `H:'
OS = `Windows_NT'
VIEWER = `emacs'
OLDPWD = `/usr/bin'
PROCESSOR_ARCHITECTURE = `x86'
TEMP = `/cygdrive/c/TEMP'
EDITOR = `emacs'
!W: = `W:\'
PROCESSOR_LEVEL = `6'
SYSTEMROOT = `C:\WINNT'
NWUSERNAME = `L510425'
LOCCODE = `AP1'
TMP = `/cygdrive/c/TEMP'
WINDOWS_LOGIN = `0'
HOMEDRIVE = `\\'
SDC_SERVER = `AP3SDCV1APPLGE'
!K: = `K:\'
SHLVL = `1'
F_SERVER = `AP1DS01'
HOMEPATH = `ap1fs01\users\l510425'
USERDOMAIN = `USERSAPPLGE'
!L: = `L:\'
CD_ROM = `F:'
!Z: = `Z:\'
USERNAME = `L510425'
SHELL = `/bin/bash'
!M: = `M:\Start Menu\PROGRAMS\Cygnus Solutions'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
UPDATE_SERVER = `AP1BC01APPLGE'
!N: = `N:\'
TOOL_DRV = `W:'
_ = `/usr/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `E:/cygwin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `E:/cygwin/bin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `E:/cygwin/lib'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

a:  fd  FAT        1Mb  39% CP    UN           PKBACK# 001
c:  hd  NTFS    7804Mb  16% CP CS UN PA FC     
d:  hd  FAT     4000Mb   2% CP    UN           
e:  hd  FAT     4094Mb  15% CP    UN           
f:  cd           N/A    N/A                    
h:  net NWFS    2051Mb  36% CP                 SYS
k:  net NWFS   67399Mb  91% CP                 USERS
l:  net NWFS   67399Mb  91% CP                 USERS
m:  net NWFS   67399Mb  91% CP                 USERS
n:  net NWFS   67399Mb  91% CP                 USERS
s:  net NWFS   67399Mb  91% CP                 USERS
t:  net NWFS    5000Mb  53% CP                 APPS
w:  net NWFS   67399Mb  91% CP                 USERS
z:  net NWFS    2051Mb  36% CP                 SYS

E:\cygwin\bin  /usr/bin  user    binmode
E:\cygwin\lib  /usr/lib  user    binmode
E:\cygwin  /        user    binmode
c:    /cygdrive/c  user    binmode,noumount
d:    /cygdrive/d  user    binmode,noumount
e:    /cygdrive/e  user    binmode,noumount
h:    /cygdrive/h  user    binmode,noumount
k:    /cygdrive/k  user    binmode,noumount
l:    /cygdrive/l  user    binmode,noumount
m:    /cygdrive/m  user    binmode,noumount
n:    /cygdrive/n  user    binmode,noumount
s:    /cygdrive/s  user    binmode,noumount
t:    /cygdrive/t  user    binmode,noumount
w:    /cygdrive/w  user    binmode,noumount
z:    /cygdrive/z  user    binmode,noumount

Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: E:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ls.exe
Found: z:\\ls.exe
Warning: E:\cygwin\bin\ls.exe hides z:\\ls.exe
Not Found: make
Not Found: sh

  701k 2001/09/13 E:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/9/12 23:54
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 3
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 46
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Wed Sep 12 23:54:31 EDT 2001
        shared id: cygwin1S3

Use -h to see help about each section


             reply	other threads:[~2001-09-19 12:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-19 12:41 Lehr, Matt (GEA, 510425) [this message]
2001-09-19 13:30 ` Gerrit P. Haase
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=3DC3FF95C367D411B47E00D0B73E4B38F80847@ap3expr8applge.appl.ge.com \
    --to=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).