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

[ale] bash, full filename



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