zsh-users
 help / color / mirror / code / Atom feed
* 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; 3+ 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] 3+ 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; 3+ 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] 3+ messages in thread

* Re: ( Text in unknown character set UTF-8 not shown )
  2010-02-24 10:56 Re: possible bug in zsh glob dipakgaigole
@ 2010-02-24 15:00 ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2010-02-24 15:00 UTC (permalink / raw)
  To: zsh-users

On Feb 24, 10:56am, dipakgaigole wrote:
} 
} Before posting the question, I had a look at the glob options as well
} as the NOMATCH option, but the description of NOMATCH option was
} confusing.

The name of the option comes from a csh variable that can be set.  It
was therefore originally "nonomatch".  Many years ago, though, zsh
added the ability to turn *off* any option by prefixing its name with
an additional "no".  Eventually it was viewed as silly that one would
thus e.g. "setopt nononomatch"; so all the options that *already* had
a "no" prefix were renamed to drop one "no" and reverse their boolean
state (including, therefore, their default-at-startup boolean state).

In this case that left us with "nomatch" -- and the documentation also
had to be reversed, of course, which didn't always work as well as when
documenting the original name and state.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-23  7:17 UTC | newest]

Thread overview: 3+ 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
  -- strict thread matches above, loose matches on Subject: below --
2010-02-24 10:56 Re: possible bug in zsh glob dipakgaigole
2010-02-24 15:00 ` ( 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).