Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Wed, 27 Jul 2005 19:36:27 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: which command returns incomplete paths that don't work with all commands
Message-ID: <20050727233627.GC21845@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <20050727221654.56072.qmail@web31415.mail.mud.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050727221654.56072.qmail@web31415.mail.mud.yahoo.com>
User-Agent: Mutt/1.5.8i

On Wed, Jul 27, 2005 at 03:16:54PM -0700, Don Beusee wrote:
>I am new to Cygwin, but very experienced with Unix/Linux.
>
>I did this command, just to see how compatible cygwin is with Unix/Linux:
>strings -a `which ps` | grep Header
>
>This works on Unix/Linux (it correctly returns nothing for this executable,
>but it returns a lot of stuff with Oracle Applications executables).  It
>does not work with Cygwin because `which ps` returns /usr/bin/ps, which
>can't be opened by the strings command:
>
>sh-3.00$ strings -a `which ps`
>strings: /usr/bin/ps: No such file or directory
>sh-3.00$

Try "which /usr/bin/ps.exe".  That would work better.

cgf

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

