I have directories set up a bit like this
~/code
~/code/src
~/code/build -> /path/to/somewhere/else
That last one's a symlink.
If I do this
cd ~/code/build
ls ..
then I get the listing for /path/to/somewhere, but from other remarks and my own experience, I'd expected to see the listing for ~/code -- I'd swear that this used to work the other way round.
I'm using zsh and bash on Ubuntu. Is there a setting for this or is it deeply ingrained into POSIX or something?
ls -- "$(dirname -- "$PWD")"