From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14786 invoked from network); 8 Dec 1998 22:14:58 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 Dec 1998 22:14:58 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id RAA00368; Tue, 8 Dec 1998 17:10:08 -0500 (EST) Resent-Date: Tue, 8 Dec 1998 17:09:54 -0500 (EST) Date: Tue, 8 Dec 1998 22:04:43 +0000 From: Paul Moore To: zsh-users@math.gatech.edu Subject: "Fallback" alias/function in zsh Message-ID: <19981208220443.A180@morpheus.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.17i Resent-Message-ID: <"2lZB62.0.J5.oEQRs"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1965 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi, Is it possible to define a function which gets used whenever zsh's normal alias/function/builtin/path lookup fails? The best example I can give of what I'm after is using zsh for Win32 (which is version 3.0.5). There, I'd like to have access to the good old CMD.EXE builtins, like DIR (at the moment, I don't have a working Unix-like ls). So, I thought, how about defining a function to be called "when all else fails" which does "CMD /C "? But I couldn't find a way of doing this. Is it possible, or if not, would it be a useful addition? Paul Moore