On Thursday 12 February 2009 04:58:09 Andreas Schwab wrote: > Mike Frysinger <vap...@gentoo.org> writes: > > On Wednesday 11 February 2009 23:38:10 Rolf Brudeseth wrote: > >> I would like to propose a new command for bash: > >> > >> ca [path] > >> > >> It returns the canonical path based on the current working directory and > >> entered path. > >> > >> > >> If the current working directory has been traversed through a symbolic > >> link, then listing a higher level path using dotdot's do not always show > >> I am looking for. Below is a trivial example: > > > > what's wrong with: > > ca() { cd "$(readlink -f -- "$@")"; } > > ca() { (cd "$@" && pwd -P); }
yes, that would be correct ... i thought he wanted to change to the canonical path, not look it up -mike
signature.asc
Description: This is a digitally signed message part.