Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why does this not work in zsh?



>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