delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/19/22:53:20

X-Recipient: archive-cygwin AT delorie DOT 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 AT byu DOT 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 AT cygwin DOT com, paul DOT hermeneutic AT gmail DOT com
Subject: Re: ps executable does not appear to match source
References: <4a89b8680801191931m764eedderc9e608de3530eb48 AT mail DOT gmail DOT com>
In-Reply-To: <4a89b8680801191931m764eedderc9e608de3530eb48@mail.gmail.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 paul DOT hermeneutic AT gmail DOT 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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019