$ mkdir foo $ ln -s foo bar $ echo "readlink ./bar" | /sbin/nash --quiet /home/notting/tmp/foo $ echo "readlink bar" | /sbin/nash --quiet error realpath bar/foo: 2 The second *should* work, AFAIK.
"bar" and "./bar" should work now. Note that "bar/." will still not expand.