zsh-workers
 help / color / mirror / code / Atom feed
* Prompt dir expansion after removing cwd's parent
@ 2022-06-08  9:14 Daniel Shahaf
  2022-06-08  9:41 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Shahaf @ 2022-06-08  9:14 UTC (permalink / raw)
  To: zsh-workers

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.

Cheers,

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-09  1:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08  9:14 Prompt dir expansion after removing cwd's parent Daniel Shahaf
2022-06-08  9:41 ` Peter Stephenson
2022-06-08 16:15   ` Bart Schaefer
2022-06-09  1:10     ` Bart Schaefer

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

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).