X-Recipient: archive-cygwin@delorie.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@byu.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@cygwin.com
Subject: Re: perl.exe: fatal error on Vista
References: <95455e980808111758m41454d93g44ae3d7bd822d23c@mail.gmail.com> 	 <6910a60808112315v12711bbft8591b70d859858a1@mail.gmail.com> 	 <95455e980808121907y480400d2s9880ad96b3a8d684@mail.gmail.com> 	 <6910a60808122348m426a0f44g51c53966da519ff6@mail.gmail.com> 	 <95455e980808130333y66b26123k8f7f608cc9f4c47e@mail.gmail.com> 	 <Pine.NEB.4.64.0808130959070.26399@panix2.panix.com> 	 <48A31A91.1070304@x-ray.at> 	 <95455e980808140300w169b37a8j5ceb626ee6b58342@mail.gmail.com> <6910a60808140344o1f433d09m893f8d64faa4f9b0@mail.gmail.com> <00aa01c8fe03$0bb9ebb0$9601a8c0@CAM.ARTIMI.COM>
In-Reply-To: <00aa01c8fe03$0bb9ebb0$9601a8c0@CAM.ARTIMI.COM>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@byu.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/

