From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23632 invoked by alias); 5 Jan 2017 16:40:36 -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: 40275 Received: (qmail 12096 invoked from network); 5 Jan 2017 16:40:36 -0000 X-Qmail-Scanner-Diagnostics: from smtprelay03.ispgateway.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.67.31.37):SA:0(-0.7/5.0):. Processed in 1.694073 secs); 05 Jan 2017 16:40:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: ft@bewatermyfriend.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Daniel Shahaf Cc: zsh-workers@zsh.org Subject: Re: vcs_info: '%' in payloads not escaped In-Reply-To: <20170105160730.GA21106@fujitsu.shahaf.local2> (Daniel Shahaf's message of "Thu, 5 Jan 2017 16:07:30 +0000") References: <20161227150507.GA20351@fujitsu.shahaf.local2> <20170105160730.GA21106@fujitsu.shahaf.local2> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) Date: Thu, 05 Jan 2017 17:27:06 +0100 Message-ID: <871swhqxph.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: NDMwNDQ0 Hey Daniel! Daniel Shahaf wrote: [...] > How about the following? > else > git_applied_s=3D"" > fi > + git_applied_s=3D${git_applied_s//'%'/%%} > else [...] > git_patches_unapplied=3D${#git_patches_unapplied} > + git_patches_unapplied=3D${git_patches_unapplied//'%'/%%} > else I honestly don't know. Isn't this like kind-of-predictable behavior versus a =E2=80=94 potentially =E2=80=94 a lot of special cases? I don't th= ink that it's possible to get this right in the general case. It's in-band data that is indistinguishable from data that is interpreted by something that interprets zsh's prompt language. Regards, Frank --=20 In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925