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