zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: bug in parameter expansion
Date: Thu, 08 Nov 2012 06:53:31 -0800	[thread overview]
Message-ID: <121108065331.ZM2775@torch.brasslantern.com> (raw)
In-Reply-To: <20121107204551.5c2091fc@pws-pc.ntlworld.com>

On Nov 7,  8:45pm, Peter Stephenson wrote:
}
} It's happening because we look at the string "=*" and we tokenise that to
} make patterns (such as the "*") active if it was in quotes.  We tokenise
} the "=" the same as if it were a command line argument.  I can't think
} of any occasion we'd want to do that if we know it's *not* a command
} line argument: there's already a flag for this, so the fix is simple.

This looks OK to me, but just to be sure I understand:  The flag you're
talking about in this context is "sub" rather than "incmdpos"?  For those
who may be attempting to learn the code, "incmdpos" really does mean "in
the command position", e.g., the first word in the buffer or the first
word after a separator such as ";" or "|", among other cases.

The "sub" flag doesn't directly mean "not a command line argument" here,
unless I'm mistaken?


  reply	other threads:[~2012-11-08 14:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07 19:13 Scott Moser
2012-11-07 20:45 ` Peter Stephenson
2012-11-08 14:53   ` Bart Schaefer [this message]
2012-11-08 15:20     ` Peter Stephenson

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=121108065331.ZM2775@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).