From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: A.Main@dcs.warwick.ac.uk (Zefram)
Cc: zsh-workers@math.gatech.edu (Zsh workers list)
Subject: Re: Globbing in redirections
Date: Thu, 6 Jun 1996 18:25:23 +0200 (MET DST) [thread overview]
Message-ID: <199606061625.SAA00981@bolyai.cs.elte.hu> (raw)
In-Reply-To: <6465.199606061454@downwind.dcs.warwick.ac.uk> from Zefram at "Jun 6, 96 03:54:30 pm"
> This patch makes redirection behave a little more like ksh.
> It disables globbing on filenames in redirections, but only when
> multios are disabled. (Globbed redirections are a very useful way
> to generate multios.) Note that behaviour is still not exactly
> like ksh, as brace expansion is still done. But ksh seems to treat
> brace expansion as part of globbing: compare "echo ~{root,nobody}"
> in the two shells. (KSH_BRACES, anyone?)
No, that's a different problem. In zsh filename expansion is performed
after most other substitutions while POSIX says that it must be the first
expansion which must be done before $ susbstitutions. In zsh I can use
USER=hzoli ; echo ~$USER
but this does not work in a POSIX compilant shell. I'll move filename
expansion before the other substitutions if zsh is invoked as sh/ksh. Or
maybe an option should control this? I personally think that the best
would be to do filename expansions first even if zsh is invoked as zsh but
I'm sure that it will break some scripts. Does anyone have such a script?
Zoltan
next prev parent reply other threads:[~1996-06-06 16:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-06 14:54 Zefram
1996-06-06 16:25 ` Zoltan Hidvegi [this message]
1996-06-06 16:36 ` Zefram
1996-06-06 16:48 ` Zoltan Hidvegi
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=199606061625.SAA00981@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=A.Main@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.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).