Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _git: Quote the return value of __git_committish_range{first,last}
- X-seq: zsh-workers 36156
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Wieland Hoffmann <themineo@xxxxxxxxx>
- Subject: Re: [PATCH] _git: Quote the return value of __git_committish_range{first,last}
- Date: Thu, 13 Aug 2015 23:18:42 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8fNJZZiREeGG/xRQPWwPZDt2DGw=; b=U7IzDp CazKypgRk0nEDS/y8UdZ3c+Kl1avKeV72bFJebLWGYXI4aLXaB3GD/J9lDUsjtu4 EhoWPfL02zHLF8M0z0Gwk6+M1qi5dVtBn/+UUezkV28UqJW++h+xk9vOjmdpZNVj cTOCOAB/2clerjqKHvVxtSmv9vCh1+fmxE07Y=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=8fNJZZiREeGG/xRQPWwPZDt2DGw=; b=UKaXS Dq+dg2ibsLA4L7oDzCkpwNwpROsenuaVLcxh9EuQEIoeiuudoMEyDl7r4iBU8ci1 3vJW4VbU3EGHxmaKB1FhBCFwIz2GpVr37XxoVN9oHtytmLHdrYvmgOp/fWV5qCKU jXxnlbO9jqRRlWEABNaFTtF/6vxCoEKME6ZCs8=
- In-reply-to: <1439372177-32218-1-git-send-email-themineo@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1439372177-32218-1-git-send-email-themineo@gmail.com>
Wieland Hoffmann wrote on Wed, Aug 12, 2015 at 11:36:17 +0200:
> Otherwise, __git_is_committish_range performs word splitting if it's
> passed a range that includes spaces (like "master@{1 week ago}..master").
...
> - local first=$(__git_committish_range_first $1)
> - local last=$(__git_committish_range_last $1)
> + local first="$(__git_committish_range_first $1)"
> + local last="$(__git_committish_range_last $1)"
I see this has been applied, but for future reference, note that it is
only necessary for 5.0.8 and older, since in zsh from git 'local' is
a reserved word and
local x=$(echo foo bar)
doesn't perform word splitting.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author