4 # print reversed relative path to $1
8 expr "$1" : "\(/[^/]*\)"
13 expr "$1" : "/[^/]*\(.*\)"
18 from=`(cd "$1" && pwd)`
22 while [ -n "$t" -a "$t" = "$f" ]; do
28 i=`echo $from | sed -e 's/[^/]\+/../g'`
29 if expr "$from" : '/' > /dev/null 2>&1; then