help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Prompt dir expansion after removing cwd's parent
Date: Wed, 8 Jun 2022 09:14:26 +0000	[thread overview]
Message-ID: <20220608091426.GA15730@tarpaulin.shahaf.local2> (raw)

With 5.9:

     1	% cd /tmp
     2	% PS1='%~%# '
     3	/tmp% mkdir foo foo/bar 
     4	/tmp% cd foo/bar
     5	/tmp/foo/bar% rm -rf /tmp/foo
     6	/tmp/foo/bar% cd ..
     7	/tmp/foo/bar% cd ..
     8	/tmp% 

The prompts on lines 6 and 7 are wrong.

Ideally I'd like to see some indication that cwd has been deleted, or
that a path to cwd couldn't be determined, etc..  Definitely not some
apprently-valid path that points to something else than cwd.


(who hasn't forgotten about the widgets shadowing docs thread)

             reply	other threads:[~2022-06-08  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08  9:14 Daniel Shahaf [this message]
2022-06-08  9:41 ` Peter Stephenson
2022-06-08 16:15   ` Bart Schaefer
2022-06-09  1:10     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220608091426.GA15730@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).