From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10932 invoked from network); 13 Oct 2000 21:24:22 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Oct 2000 21:24:22 -0000 Received: (qmail 10303 invoked by alias); 13 Oct 2000 21:23:34 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3457 Received: (qmail 10294 invoked from network); 13 Oct 2000 21:23:33 -0000 X-Authentication-Warning: vin.ens-lyon.fr: vlefevre set sender to vincent@vinc17.org using -f Date: Fri, 13 Oct 2000 23:23:28 +0200 From: Vincent Lefevre To: zsh-users@sunsite.auc.dk Subject: Re: tcsh -X behavior Message-ID: <20001013232328.A17758@vin.ens-lyon.fr> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20001013172956.A16738@vin.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from airwin@inf.bme.hu on Fri, Oct 13, 2000 at 06:08:25PM +0200 X-Mailer-Info: http://www.vinc17.org/mutt_eng.html Content-Transfer-Encoding: 8bit On Fri, Oct 13, 2000 at 18:08:25 +0200, Nemeth Ervin wrote: > So in a shell-script: > > if hash ls 2> /dev/null; then > : > fi I currently use "whence >/dev/null" (it checks for aliases too, but this is OK for me). What is the best one? But IMHO, a -X operator would be a good idea. -- Vincent Lefèvre - Web: - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / PolKA research team at LORIA