From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1808 invoked by alias); 10 Feb 2017 18:05:41 -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: 40517 Received: (qmail 15919 invoked from network); 10 Feb 2017 18:05:41 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net 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(205.235.26.22):SA:0(0.5/5.0):. Processed in 1.729676 secs); 10 Feb 2017 18:05:41 -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.5 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=Rlnm=ZX=brasslantern.com=schaefer@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bounces.park01.gkg.net does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 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=EhDl2IKA8UCsLbeF1yDOGsQlB3wykLg7idIPMVz8PBQ=; b=a//uXiJgwheCaO/OEdyJXyDpqXIwq16gr5R1GmH3IAeSZ+ZB6bl2dVSIV/ScQpkF80 eOJA75DzXeuxoL7ZCj1H3uPXgJSRFOg00qbVSVnq4StxHkwtIxjjRo8tf00d4uWRMCrU uaAljr1Pp+b2yeUfqja3lQUVpPdQCfZ/qEbB/5UQ4XU3c1uqpXSaplJt1lfksiNNF6+q vtg7UCfQZcaotXBYQrhhfTUkTkuTdHDQ53PqX66kga2SZx7+mN/1nzpZDkzyt1qTvus3 Mhwcnq1CD8SecFzyH/QzPYj9le6SvrZHwyj5Skx4/n70QJtIYbyb4Pog3fN75j+M28n7 4FYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=EhDl2IKA8UCsLbeF1yDOGsQlB3wykLg7idIPMVz8PBQ=; b=Te40q5h19Of2zwCkzFfIii/LiFMMqRYCFEnxA/iwoo3hscGYrlfuf4iamXIEt3moSx nfQNSxbEFFXjJBuiMfbaHvjZ1iVEb3AowisCmFE7Z2yxFNF48NI/VWRyIZFl2BWLWcTa C777VUpJEWdSSaqZXzvz9+s+z6Qrn75olnmYGD46s2qWePv0CJvhnmV19PihT15IiqvG Wd/fGp+3MP0uCXW/RXerHG6zQVomTBWknCZDm4jm7FRwKlY/o9RB6XWxNJ1aHWPCfOhb X7LHgKsMA9ZOanXuvDPxjtL7THgtIrRsmic6y3Ro7TTMg9NOpIv9vO4FBRHtup7UnlvU WrTQ== X-Gm-Message-State: AMke39la9boIvbyWYtMoYAw9iSmDUjA5OYUJCSWqFzth2aCpGTgIE0HzPxeqRyWGcvmyxw== X-Received: by 10.31.5.14 with SMTP id 14mr4219678vkf.23.1486749575050; Fri, 10 Feb 2017 09:59:35 -0800 (PST) From: Bart Schaefer Message-Id: <170210095949.ZM9880@torch.brasslantern.com> Date: Fri, 10 Feb 2017 09:59:49 -0800 In-Reply-To: <20170207074826.GV27938@sym.noone.org> Comments: In reply to Axel Beckert "Fwd: Re: %N in prompt shows "_zsh_highlight_call_widget" on Ctrl-L instead of e.g. "/usr/bin/zsh" or "-zsh" since recently (#414)" (Feb 7, 8:48am) References: <20170207074826.GV27938@sym.noone.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Fwd: Re: %N in prompt shows "_zsh_highlight_call_widget" on Ctrl-L instead of e.g. "/usr/bin/zsh" or "-zsh" since recently (#414) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 7, 8:48am, Axel Beckert wrote: } } Everytime I press Ctrl-L in my xterm, %N inside my prompt shows } _zsh_highlight_call_widget instead of e.g. /usr/bin/zsh or -zsh I'm not sure at which point this might have shown up -- possibly after workers/38991 (commit f026a4dc) -- but I think it has to be considered a bugfix, because _zsh_highlight_call_widget (or in the other example the "clear-screen" widget) is what is being executed at the time the prompt is recalculated. Of course in this case you'd really like to know what's happening at the time the prompt is displayed; %N is really intended for use in PS4 where the recalculation and the display occur together. For PS1 that only happens when the editor starts up for each new command input. In what circumstances would you expect to need %N in PS1? That is, the reason to use any %-expando is to display information that will change after the prompt is assigned. If there is no case in which you would expect %N to return something different, then you should not need to use it. Instead for example: PS1="$ZSH_ARGZERO:t %# "