Danyel Bayraktar wrote:
3) Honestly, the most obvious and backward-compatible solution would be to put this behind a shopt option, e.g. ‘shopt -s cwdspoof’. I don’t see any reason why this wouldn’t be feasible…
Because it's not a bash problem?
In Windows, in their cmd.exe, if you cd to a directory, you can't delete the directory (nor eject the device it is on).