Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [regression] %2K prompt expansion no longer works
- X-seq: zsh-workers 47353
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [regression] %2K prompt expansion no longer works
- Date: Sun, 30 Aug 2020 15:17:25 +0200
- Archived-at: <https://zsh.org/workers/47353>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-08/CAHYJk3S4XEw8s5CNF4O7H6_4iGFqJE%3De%3Dg8P358em-8CPsx4bw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f174.google.com) smtp.remote-ip=209.85.166.174; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=skipped; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=aDo1FEMetUkyXTV9U1wqQOzaJIsU2s2BZ6Y9W5UFyV4=; b=XWcp/eWKP1VE6hfKanHeVlrMFMvAd8vVUFqASN/bG6hnzUxKGyWNtIRIdd+IQ2hooo ijka3eR1r9Acj1QK9sEFPCjrZBSU+60ZFVAYfdJSgZZNQu+jVbEGMOFvgsDrCdbf3b+J FzpyoN/OqSIgShVIYGuBcntZRKLQEVznyQZtuETEdlqDe8mF7uvo2hMnCGPWRnRuVUIJ EWdnem0bfObjcQmZ8sDdPmMRU/j5a6nwO5EkfE85MXwS8RuKpJDFYmO2Mtt1meKOlXkV lQFsexwVY+wN26KXU7GQCmhvtT1ZDxaJxk3GuyReduJkHpFg+Oagg3bNId12p5z8+kk4 +jyQ==
- In-reply-to: <20200830111346.xulnbxoqxduetnoz@chazelas.org>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20200830111346.xulnbxoqxduetnoz@chazelas.org>
- Sender: zsh-workers-request@xxxxxxx
On 8/30/20, Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
> $ print -rnP %2K | hd
> 00000000 1b 5b 34 30 6d |.[40m|
> 00000005
>
> %K{2} is fine:
>
> $ print -rnP '%K{2}' | hd
> 00000000 1b 5b 34 32 6d |.[42m|
> 00000005
>
> Introduced by worker:30496
> (https://www.zsh.org/mla/workers/2012/msg00421.html
> 8a9b141652a0e4157056dc21e36a64ac712a7ee7 git commit).
>
> Oddly, the comment there:
>
>> Well, nobody objected so here's a version with de-duplicated
>> code. The previous patch broke %K, but it works now (passed 1
>> for is_fg on both paths).
>
> Actually describes the bug here. Looks like Mikael just missed a bit in
> that
> fix.
I likely only tested %K{2}, sorry about that (looks like not many
other people use %2K either though).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author