From: Bart Schaefer <schaefer@brasslantern.com>
To: <zsh-workers@zsh.org>
Cc: Daniel Hahler <dhahler@gmail.com>
Subject: Re: Additional space at end of assignment in preexec's $2 and $3
Date: Tue, 09 Dec 2014 16:23:21 -0800 [thread overview]
Message-ID: <141209162321.ZM7303@torch.brasslantern.com> (raw)
In-Reply-To: <54877CEF.3040506@thequod.de>
On Dec 9, 11:51pm, Daniel Hahler wrote:
}
} An assignment appears to have an additional " " at the end of $2 (and
} $3) in preexec:
I believe that's because assignments by themselves are a special-case of
assignment-before-command, as far as the internal wordcode is concerned.
There is no guarantee that the user's input string and the other arguments
passed to preexec will be identical -- in fact, it's explicitly documented
that $2 will have been squashed down to a single line.
Here's a different example of whitespace changing:
torch% foo=bar :
== preexec ==
+preexec:0> test 'foo=bar :' '=' 'foo=bar :'
+preexec:0> echo 'foo=bar :'
foo=bar :
+preexec:0> set +x
prev parent reply other threads:[~2014-12-10 0:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 22:51 Daniel Hahler
2014-12-10 0:23 ` Bart Schaefer [this message]
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=141209162321.ZM7303@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=dhahler@gmail.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).