* Why does $'…' not expand inside "…"?
@ 2010-12-22 20:48 Nikolai Weibull
2010-12-23 7:17 ` ( Text in unknown character set UTF-8 not shown ) Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Weibull @ 2010-12-22 20:48 UTC (permalink / raw)
To: Zsh Users
Why does $'…' not expand inside "…"?
It’s not, as far as I can tell, mentioned in the documentation.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ( Text in unknown character set UTF-8 not shown )
2010-12-22 20:48 Why does $'…' not expand inside "…"? Nikolai Weibull
@ 2010-12-23 7:17 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2010-12-23 7:17 UTC (permalink / raw)
To: Zsh Users
On Dec 22, 9:48pm, Nikolai Weibull wrote:
}
} Why does $'...' not expand inside "..."?
Because it doesn't in any of the shells that introduced it before
zsh had it.
I believe the reasoning is that double-quote is allowed to appear
inside $'...' and to expand $'...' inside double-quotes creates a
parsing conflict. "How does this $'with " embeded' parse?"
} It's not, as far as I can tell, mentioned in the documentation.
The documentation for zsh tends to omit things that are assumed
knowledge, particularly when a concept or feature originates from
another source -- because if you didn't already know about it from
the original source, why did you even think to use it?
This is an acknowledged shortcoming that is addressed piecemeal.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-23 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 20:48 Why does $'…' not expand inside "…"? Nikolai Weibull
2010-12-23 7:17 ` ( Text in unknown character set UTF-8 not shown ) Bart Schaefer
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).