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

Reply via email to