From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 37d50e7a for ; Wed, 12 Feb 2020 05:24:28 +0000 (UTC) Received: (qmail 9149 invoked by alias); 12 Feb 2020 05:24:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24685 Received: (qmail 9251 invoked by uid 1010); 12 Feb 2020 05:24:21 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25718. spamassassin: 3.4.2. Clear:RC:0(209.85.208.170):SA:0(-1.9/5.0):. Processed in 1.900379 secs); 12 Feb 2020 05:24:21 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.170 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=KMWtUI9txUtOErAsZo/viD4rCBMWeNjWCM6ETIhP3YI=; b=dq0G3n7ufKbPUZIAStf1XioU99hOYiyMtzjM5aqaiGMgT9iAqoqrYXwp2ulkgGMYRH JiE+Nm3iWSn3O0kQFRWpAfPHH2AXKZIwSgxAHO+VUb1+tq6pdaXiiQnKfnyDDn2B7u+O 3+/1FPotLVyPY1ism1ob9IkPHYlzjMjV+ixvzjJKFt19+N5gfjFnPcDtBXsdTkwdc/uX B5YBi+67jPL3HI8st5/wqQUtKy25p2saI8+2TEJk0UtdkaFY/ZIVpiLcXcBIn3TGIQiO 6qxZnIf4wTgoisuL9KF9taaHUifNlrKC8nnw7pmp6ZTGFGQHQN9EJDyL6LiTr1d1TbG6 uKAA== X-Gm-Message-State: APjAAAVPbfA6VeJkKjCoBGZxBg9lFrC8u+Raset+8ZaWrqWrQYuUNmVB EsurLle2xHEbv6LtZU6yfdLuDmdszUUp9/sy+skWjzykLR4= X-Google-Smtp-Source: APXvYqzP/GAjjBoC0jNnVfY5a6/eikySNycDKQ/zPLxLIjQfWK52xk2WiAhmBCrIJLFCd3XX/vL0ThDseW+Lycv3JjA= X-Received: by 2002:a2e:860c:: with SMTP id a12mr6604845lji.146.1581485023836; Tue, 11 Feb 2020 21:23:43 -0800 (PST) MIME-Version: 1.0 References: <5dfbef9f-754f-8487-a6b8-44296cba1a11@eastlink.ca> <171001115438.ZM17268@torch.brasslantern.com> <1506886188.3585120.1124265296.1C8585C6@webmail.messagingengine.com> <171001145042.ZM17810@torch.brasslantern.com> <16D1FF19-CE8F-4A88-9AD0-1661BC3FD65F@larryv.me> In-Reply-To: <16D1FF19-CE8F-4A88-9AD0-1661BC3FD65F@larryv.me> From: Bart Schaefer Date: Tue, 11 Feb 2020 21:23:32 -0800 Message-ID: Subject: Re: What's wrong with PROMPT_SUBST? (Was: VCS info (Re: Call for good plugins list)) To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 11, 2020 at 1:38 AM Lawrence Vel=C3=A1zquez wrot= e: > > > On Oct 1, 2017, at 5:50 PM, Bart Schaefer > > wrote: > > > > The main thing is that I despise prompt_subst > > Why is that? Mostly it's a matter of taste. It introduces yet another set of tokens that you have to escape to use literally in prompts, and I don't think the prompt is an appropriate place to be running command substitutions. It means even more possible collisions on variable names with unintended side-effects. Obviously these are things that can be avoided; I'd just rather not have to think about them.