[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash stating it is in a directory which does not exist
From: |
Nikolas Kallis |
Subject: |
Bash stating it is in a directory which does not exist |
Date: |
Tue, 19 Feb 2013 17:00:32 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
Hello,
I have found a bug in Bash:
/opt/foobar$
/opt/foobar$ rmdir ../foobar/
/opt/foobar$
With the above, one can see I deleted the directory 'foobar/' from
within the directory itself. What one can also see is that after I
deleted the directory, I was still in it according to Bash.
This is a bug because Bash is telling me something which is not true.
To fix this, Bash needs poll to confirm the file system location its
working in still exists, and to to move to the next valid '../' when the
address it was working in no longer exists.
Perhaps this can be done automaticly, automaticly only if there is no
input, or on the next return.
On the next return would be safest I think.
Regards,
Nikolas Kallis
- Bash stating it is in a directory which does not exist,
Nikolas Kallis <=