You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using bash's tab completion on a directory, the completed name has a trailing slash. However, rmdir stumbles over an directory argument with a trailing slash and refuses to delete the specified directory. It works after manually removing the trailing slash though.
As a possible solution, the libc could strip trailing slashes of the rmdir argument. Maybe, a similar issue exists for other file/path operations?
The text was updated successfully, but these errors were encountered:
This is probably related to "rm -r dir/" failing to delete the directory itself. I would love to see this fixed.
It sounds like our libc was designed for a less strict VFS implementation that allowed trailing slashes in paths. We probably need to remove trailing slashes from all libc file path strings in order to get the standard unix behavior.
When using bash's tab completion on a directory, the completed name has a trailing slash. However, rmdir stumbles over an directory argument with a trailing slash and refuses to delete the specified directory. It works after manually removing the trailing slash though.
As a possible solution, the libc could strip trailing slashes of the rmdir argument. Maybe, a similar issue exists for other file/path operations?
The text was updated successfully, but these errors were encountered: