[Top][All Lists]

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

how to get a directory's "full" name?

From: Robert P. J. Day
Subject: how to get a directory's "full" name?
Date: Fri, 12 May 2006 13:10:17 -0400 (EDT)

  as part of my multi-arch build, i need to convert a (probably)
relative directory name to its full name.  that is, if someone refers
to "..", i need to get the full directory name of ".."

  this "function" seems to work:

real-dir = $(shell cd ${1} ; echo $${PWD})

cd to arg, then echo full dir name.  is there a simpler or built-in
way that's better?


reply via email to

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