X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=qMQSeA_6_B4A:10 a=xe8BsctaAAAA:8 a=6n2EDfzzwL33ErDMk4IA:9 a=k5XSvLQ0kJOJySn4TGoA:7 a=T4lQtl0G8KnPgpCab4dRPK1ExnUA:4 a=MSl-tDqOz04A:10 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <4792C595.6030900@byu.net>
Date: Sat, 19 Jan 2008 20:52:53 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com, paul.hermeneutic@gmail.com
Subject: Re: ps executable does not appear to match source
References: <4a89b8680801191931m764eedderc9e608de3530eb48@mail.gmail.com>
In-Reply-To: <4a89b8680801191931m764eedderc9e608de3530eb48@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; 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 paul.hermeneutic@gmail.com on 1/19/2008 8:31 PM:
| While aliasing does work for interactive and shell scripts, it does
| not work for Perl backtick expressions.

Why not just do:

echo exec procps "$@" > /usr/local/bin/ps

Then, as long as /usr/local/bin is on the PATH before /usr/bin (which is
the default), then any program (including perl) that exec's 'ps' will use
procps rather than cygwin ps.

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

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

iD8DBQFHksWV84KuGfSFAYARAhaRAJ0YUuLil/30GSy9gVB2z5YRS3PZVACfek8v
xATMzA2SuWhFtQ+jF6r3GdM=
=JKYw
-----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/

