[ale] bash, full filename

Danny Cox danscox at mindspring.com
Wed Dec 3 16:55:02 EST 2003


David,

On Sat, 2003-11-29 at 19:27, David Corbin wrote:
> I want to be able to convert:
> 
> foobar          to  /home/dcorbin/foobar  (if I'm in /home/dcorbin)
> /etc/passwd  to  /etc/passwd
> ../fred/foobar to  /home/fred/foobar (if I'm in /home/dcorbin)

	Well this is perhaps too late, but if you have a similar need in the
future, you might look into realpath(3) (a C library call).

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny



More information about the Ale mailing list