Public bug reported: When a directory is deleted while the user is inside it, the terminal should automatically return to the parent directory.
#### 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:~/$ ``` #### Actual behaviour The terminal remains in the deleted directory's path, even though the directory no longer exists. #### Steps to reproduce the behaviour Create a new directory and navigate into it: ``` user@domain:~/test$ mkdir ~/test && cd ~/test && touch foo && ls foo ``` Delete the directory while still inside it: ``` user@domain:~/test$ rm -r ~/test ``` #### MATE general version 1.26.0 #### Package version 1.26.0 #### Linux Distribution Ubuntu MATE 22.04 #### Link to bugreport of your Distribution (requirement) ** Affects: ubuntu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2072706 Title: bash: pwd and prompt don't update after deleting current working directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/2072706/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs