[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ca - New bash command proposal

From: Mike Frysinger
Subject: Re: ca - New bash command proposal
Date: Thu, 12 Feb 2009 01:13:35 -0500
User-agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )

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 -- "$@")"; }

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]