From: Zefram <A.Main@dcs.warwick.ac.uk>
To: tosch@merlot.Stanford.EDU (Thomas Schafbauer)
Subject: Re: Why does this not work in zsh?
Date: Wed, 13 Sep 1995 10:01:12 +0100 (BST) [thread overview]
Message-ID: <26824.199509130901@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199509130358.UAA13037@merlot.Stanford.EDU> from "Thomas Schafbauer" at Sep 12, 95 08:58:16 pm
>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
prev parent reply other threads:[~1995-09-13 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-13 3:58 Thomas Schafbauer
1995-09-13 9:01 ` Zefram [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26824.199509130901@stone.dcs.warwick.ac.uk \
--to=a.main@dcs.warwick.ac.uk \
--cc=tosch@merlot.Stanford.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).