Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does this not work in zsh?
- X-seq: zsh-users 86
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: tosch@xxxxxxxxxxxxxxxxxxx (Thomas Schafbauer)
- Subject: Re: Why does this not work in zsh?
- Date: Wed, 13 Sep 1995 10:01:12 +0100 (BST)
- In-reply-to: <199509130358.UAA13037@xxxxxxxxxxxxxxxxxxx> from "Thomas Schafbauer" at Sep 12, 95 08:58:16 pm
- Sender: zefram@xxxxxxxxxxxxxxxxx
>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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author