Subject: Re: resolving symbolic links
From: "David O'Riva" <[email-masked]>
To: "Halim, Salman" <[email-masked]>
Cc: [email-masked]
Date: Wed, 10 Nov 1999 06:45:22 -0800

"Halim, Salman" wrote:
>
> what's a good way to find out (programmatically; either through a command or
> a piped series of commands or a function), in bash (if relevant), the actual
> path pointed to by a symbolic link.  for example, i have /tmp pointing to
> c:\temp -- how can i get 'c:\temp' as output given '/tmp' as input?  i
> thought of ls -al /tmp | cut -d'>' -f 2- but that seems a bit of a kludge. .
>

Specifically for cygwin, you can use "cygpath -w /tmp".  Very handy for
using ancient editors ( function q { \q `cygpath -w $*` ; } )

-- 
-dave        _________________________
------------/      David O'Riva       \--------------
408-        | Staff Software Engineer | oriva@
 473-9413   |    Atari Games, Inc.    |   agames.com
            \_________________________/

--
Want to unsubscribe from this list?
Send a message to [email-masked]