Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vcs_info: '%' in payloads not escaped
- X-seq: zsh-workers 40286
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: vcs_info: '%' in payloads not escaped
- Date: Fri, 6 Jan 2017 09:27:11 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=vpV2OEvgOCJuUz/mCXh+TuhSmdzMwHsIJWzLYzB9siI=; b=EX3/97BRQNkZ2y6MHI2elfGFIyjSL5MEIHOH27j9Z+CsS4TBNjCqD4IcnBA2GdsR+R P9QTiJSab9kbwxHxeG3KHP8xTtvuqUIdlWImC79QRDOlEvij3nc4FzA/VdGLeXYKQl0M TKM1zzfy9Ine8LMN+2/IzJHm/yTitTGoqF6BTgnlajcRnZjtuGrc3RtJz68d71EDpfzu i38eTR/bEDl0u3hTQ8IuuMoUciZ9Pdybrg1IVB3xJULhh6Win3CJ5DRIP8NLjh53DtWn G23RH452ByYQSyd9nLuzT+Y6tv57OoJtW6J1SFZJXlxSquv6WP+oRsBUbXDmtT8XQH+/ tB8w==
- In-reply-to: <20170106164012.GB4948@fujitsu.shahaf.local2>
- 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> <871swhqxph.fsf@ft.bewatermyfriend.org> <20170106022128.GA6197@fujitsu.shahaf.local2> <87wpe8pj0o.fsf@ft.bewatermyfriend.org> <20170106164012.GB4948@fujitsu.shahaf.local2>
On Jan 6, 4:40pm, Daniel Shahaf wrote:
}
} However, I do think this problem is solvable. The string we produce in
} $vcs_info_msg_N_ should have a defined escaping. I would suggest to
} define that that string is prompt-escaped - which would be consistent
} with existing code
Yes, having a well-defined reversible escaping of the string would be
the best way to go. (Reversible in that e.g. ${(Q)...} removes it,
or ${(%)...} does.)
I'm not very familiar with VCS_info. Frank seemed concerned that the
same variable might contain substrings both from git output that
had one set of quoting needs and also from other sources that had
another set of quoting needs.
If this is indeed the case then there may not be a single reversible
quoting that can be applied to the value as a whole. To fix this we
would need to provide more variations of the string, e.g., one that
is not escaped and one that is prompt-escaped.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author