zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: not an error?
Date: Thu, 08 Oct 2015 12:56:18 -0700	[thread overview]
Message-ID: <5616CA62.20604@eastlink.ca> (raw)
In-Reply-To: <151008122236.ZM4177@torch.brasslantern.com>

On 10/08/2015 12:22 PM, Bart Schaefer wrote:
> Given the quotes, the only reason too many open braces is a problem is
> when you are inside the syntax of ${...} where braces are significant.
> As soon as a matching close-brace is found, double-quote context is
> active again and braces cease to have meaning.
>
Right.  Yeah, I know about the special nature of the ${} syntax, but as 
you say, once
a closing brace is found, the following brace is just a character within 
the quotes.
It bugs me how long it's taking me to stop thinking in C.  Mind ... do 
you ever really
need the outer quotes around an array like that?  Without the quotes I 
get my
error msg as I'd intuitively expect it, and it seems now that it's the 
quotes that
are counterintuitive because ${} obviates them, no?  In this case it 
seems only
to hide the '}' error, still ...  with the 'quote everything' rule I end 
up hardly
even seeing quotes anymore and it gets lazy, I'd like to use them to effect,
not just as a matter of course.


  reply	other threads:[~2015-10-08 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08  7:51 Matching beginning and end of word Sebastian Gniazdowski
2015-10-08  9:23 ` Peter Stephenson
2015-10-08 16:46   ` Bart Schaefer
2015-10-08 17:44     ` not an error? Ray Andrews
2015-10-08 19:22       ` Bart Schaefer
2015-10-08 19:56         ` Ray Andrews [this message]
2015-10-08 20:14           ` Bart Schaefer

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=5616CA62.20604@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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).