Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Subject: Cygwin "which" and aliases To: cygwin AT cygwin DOT com X-Mailer: Lotus Notes Release 5.0.1b September 30, 1999 Message-ID: From: RCUNNINGHAM AT redlake DOT com Date: Fri, 12 Oct 2001 13:55:40 -0700 X-MIMETrack: Serialize by Router on notes1/RSMASD(Release 5.0.2c |February 2, 2000) at 10/12/2001 01:56:10 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii I wanted to make my "which" command also show aliases, so I tried the pretty macro from the which man page. It didn't work. I decided I also wanted to list functions, so I needed a better approach. Here's my attempt at a bash function for which: which () { builtin alias $* 2>|/dev/null; set | grep ^$*; /usr/bin/which $* 2>|/dev/null | grep -v ^no } Try entering "which which". Anyone know of an improved approach? Regards, -BobC -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/