Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Additional space at end of assignment in preexec's $2 and $3



-----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-----



Messages sorted by: Reverse Date, Date, Thread, Author