Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vcs_info: '%' in payloads not escaped
- X-seq: zsh-workers 40284
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: vcs_info: '%' in payloads not escaped
- Date: Fri, 6 Jan 2017 16:49:30 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=eK3MQXv8obXUurO RodpBqpn32fQ=; b=jzvoyEMo00thKs2PR+cn7DAidloy/JYxUTFsI0105tBZ888 N2eUlS4FfL/DO2JQgxHYqycuU5xkjvGIPnzz48iCrAmdL+FE4I4P8gt2VB4uGmuU sMZpUsP+ELGP98XAO1jjzrmEiJfxb+pbjz0OhdVuGQLhP39PvnSLkYiVn0fk=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=eK3MQXv8obXUur ORodpBqpn32fQ=; b=ZM/ccw1nmgN58TuTrwthkkXrJnrQpXsJRGY8aaN0L/DyTJ Xiv9P58B2EcR5eE6EJngTkvFI0x8thiD+u71bN7Wmwn69wjPIuHmRsPmiQTreAJz wL0t9SJAOHfQwRV3oMl92wWF40pLeOZ1xLaCRmvbs43xvMLvgWdIeAdsSHeYg=
- In-reply-to: <170106075524.ZM7127@torch.brasslantern.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: <20161227150507.GA20351@fujitsu.shahaf.local2> <20170105160730.GA21106@fujitsu.shahaf.local2> <170106075524.ZM7127@torch.brasslantern.com>
Bart Schaefer wrote on Fri, Jan 06, 2017 at 07:55:24 -0800:
> On Jan 5, 4:07pm, Daniel Shahaf wrote:
> }
> } How about the following?
> }
> } [[[
> } @@ -131,12 +131,14 @@ VCS_INFO_git_handle_patches () {
> } else
> } git_applied_s=""
> } fi
> } + git_applied_s=${git_applied_s//'%'/%%}
> } else
> } git_applied_s=${hook_com[applied-string]}
> } fi
>
> Shouldn't that + go above the "else"? No point in substituting on
> git_applied_s when it has just been set to "" ?
I was just future-proofing the code against potential future changes in
the 'else' branch. See users/22290 ;-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author