#! /bin/sh # Usage: path [ ] # Notes: Works on Linux only! exec 9<${1:-.} /bin/ls -l /proc/$$/fd/9 | sed 's/^.*-> //' exec 9<&-