From: Daniel Hahler <dhahler@gmail.com>
To: zsh-workers@zsh.org
Subject: Additional space at end of assignment in preexec's $2 and $3
Date: Tue, 09 Dec 2014 23:51:27 +0100 [thread overview]
Message-ID: <54877CEF.3040506@thequod.de> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
An assignment appears to have an additional " " at the end of $2 (and $3) in preexec:
% preexec() { echo "== preexec =="; set -x; test $1 = $2; echo $3; set +x }
% foo
=== preexec ==
+preexec:0> test 'foo=' '=' 'foo= '
+preexec:0> echo 'foo= '
foo=
+preexec:0> set +x
Please note that 1="foo=", but 2 and 3 are "foo= ".
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iD8DBQFUh3zvfAK/hT/mPgARAsqWAJ9bPMjZsKP+WLByg5hqTX9Zfq33FwCfUZR7
g7K0vki9ODKbLIm2prDVwVs=
=+Xau
-----END PGP SIGNATURE-----
next reply other threads:[~2014-12-09 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 22:51 Daniel Hahler [this message]
2014-12-10 0:23 ` 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=54877CEF.3040506@thequod.de \
--to=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).