codebytere.github.io
codebytere.github.io copied to clipboard
`..` has weird semantics
.., which should be "1 directory above cwd" seems to actually have different semantics. Moreover, few other issues.
To repro:
-
cd projects -
clear - Run the commands in the screenshot

Issues:
- After
clear, it says I'm inroot/, even though I'm actually still inprojects/. Thelsverifies I'm inprojects/and then lists the files there -
ls ..should list files in the parent directory, but actually lists files in the current directory (likels .) which leads me to believe..has the same semantics of. -
cd ..says "not a valid directory" even though, it should either (according to issue 2), not change directories and just stay in the current one without an error, or it should actually go toroot/according to standard semantics for this
Known workaround: Refresh 😂