www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/14/08:04:10

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=2JwDxugwhaQ3ODtBKSQA:9 a=y6PFwYQn4KPISBGALefDyhyb5LgA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <48A41EF0.6070105@byu.net>
Date: Thu, 14 Aug 2008 06:02:56 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: perl.exe: fatal error on Vista
References: <95455e980808111758m41454d93g44ae3d7bd822d23c AT mail DOT gmail DOT com> <6910a60808112315v12711bbft8591b70d859858a1 AT mail DOT gmail DOT com> <95455e980808121907y480400d2s9880ad96b3a8d684 AT mail DOT gmail DOT com> <6910a60808122348m426a0f44g51c53966da519ff6 AT mail DOT gmail DOT com> <95455e980808130333y66b26123k8f7f608cc9f4c47e AT mail DOT gmail DOT com> <Pine DOT NEB DOT 4 DOT 64 DOT 0808130959070 DOT 26399 AT panix2 DOT panix DOT com> <48A31A91 DOT 1070304 AT x-ray DOT at> <95455e980808140300w169b37a8j5ceb626ee6b58342 AT mail DOT gmail DOT com> <6910a60808140344o1f433d09m893f8d64faa4f9b0 AT mail DOT gmail DOT com> <00aa01c8fe03$0bb9ebb0$9601a8c0 AT CAM DOT ARTIMI DOT COM>
In-Reply-To: <00aa01c8fe03$0bb9ebb0$9601a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Dave Korn on 8/14/2008 5:44 AM:
|>> C:\Cygwin\Tools\bin\ash
|> $ ./grep -E -i -v '/ash(.exe)?$' /proc/[0-9]*/exename
|
|   Uhh, hold on.
|
|   Why does 'grep' show up in rce's output?  I mean, that's what I would
| expect to happen, and then I would expect the test to always fail.  But when
| I run the exact same command locally (from ash in cmd.exe), I don't see any
| grep process appear.
|
|   How does that work?

/proc/[0-9]*/exename is a glob.  It is expanded by the shell, prior to the
exec() of grep.  So grep's process id is excluded from the grep.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkikHvAACgkQ84KuGfSFAYCgZwCePuIR4q+CMDLl7sz2fFJOHLs7
0WEAoLRwMbQTOZZTeNzLwbnV/Hf6bF0g
=3pU0
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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