[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pwd and prompt don't update after deleting current working directory
From: |
Lawrence Velázquez |
Subject: |
Re: pwd and prompt don't update after deleting current working directory |
Date: |
Thu, 11 Jul 2024 18:54:25 -0400 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb |
On Thu, Jul 11, 2024, at 6:08 PM, David Hedlund wrote:
> #### Expected behaviour
> When a directory is deleted while the user is inside it, the terminal
> should automatically return to the parent directory.
>
> ```
> user@domain:~/test$ mkdir ~/test && cd ~/test && touch foo && ls
> foo
> user@domain:~/test$ rm -r ~/test
> user@domain:~/$
> ```
Why do you expect this behavior? Other shells and utilities typically
do what bash does -- i.e., nothing.
(You're free to argue that bash *should* behave this way, but that's
a feature request, not a bug report. And having bash automatically
update its working directory based on filesystem changes would open
up its own can of worms.)
--
vq
- pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory,
Lawrence Velázquez <=
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory, Lawrence Velázquez, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory, Chet Ramey, 2024/07/12
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Chet Ramey, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Lawrence Velázquez, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Martin D Kealey, 2024/07/19
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/19
Re: pwd and prompt don't update after deleting current working directory, Robert Elz, 2024/07/11