From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id TAA28926 for ; Wed, 13 Sep 1995 19:06:02 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA20872 (5.65c/Gatech-10.0-IDA for ); Wed, 13 Sep 1995 05:05:43 -0400 Received: by math (5.x/SMI-SVR4) id AA05075; Wed, 13 Sep 1995 04:59:44 -0400 Old-Return-Path: Resent-Date: Wed, 13 Sep 1995 10:01:12 +0100 (BST) Old-Return-Path: From: Zefram Message-Id: <26824.199509130901@stone.dcs.warwick.ac.uk> Subject: Re: Why does this not work in zsh? To: tosch@merlot.Stanford.EDU (Thomas Schafbauer) Date: Wed, 13 Sep 1995 10:01:12 +0100 (BST) In-Reply-To: <199509130358.UAA13037@merlot.Stanford.EDU> from "Thomas Schafbauer" at Sep 12, 95 08:58:16 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6281.87 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: zefram@dcs.warwick.ac.uk Resent-Message-Id: <"CBd1B3.0.2F1.vrfLm"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/86 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >Below follows a nice script, which works with ksh, bash, csh and tcsh, >but not with zsh :-(((( >if ( `test $shname = ksh -o $shname = bash -o $shname = zsh` ) then > shfun=1 # K-Shells supports shell-functions > Ali() { alias $1="$2" ; } > alias endif=":" [...] >if ( `test $shname = zsh` ) then > setopt noglob # do not allow filename expansion right now > alias fi=: >endif ; fi Erm, in zsh, you're aliasing both endif and fi to :. I'm not surprised that it doesn't work. Don't alias fi if you're using zsh. -zefram