From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21559 invoked by alias); 10 Dec 2014 00:23:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33945 Received: (qmail 7517 invoked from network); 10 Dec 2014 00:23:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=LKjRmyS4 c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=Bo88OXtf_bF76ufDg3EA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141209162321.ZM7303@torch.brasslantern.com> Date: Tue, 09 Dec 2014 16:23:21 -0800 In-reply-to: <54877CEF.3040506@thequod.de> Comments: In reply to Daniel Hahler "Additional space at end of assignment in preexec's $2 and $3" (Dec 9, 11:51pm) References: <54877CEF.3040506@thequod.de> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Subject: Re: Additional space at end of assignment in preexec's $2 and $3 Cc: Daniel Hahler MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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