This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: resolving symbolic links


Salman -

ls -L should work, I think, but doesn't seem to in my 1.0 CD
installation.  Don't know if it's a bug, or misunderstanding on my
part.  Try: 'find /tmp -printf %l'  (or -printf "%l\n"), which seems to
work.

Hope that helps.

 - Don



Halim, Salman wrote:
> 
> hi,
> 
> 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. .
> .
>

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]