On Sat, Dec 01, 2001 at 07:39:55PM -0800, Collin Grady wrote:
>      Try using ln -s from a prompt to make your shortcuts.  Then they are
> symlinks in Cygwin, and Windows treats them as shortcuts.
>      -Collin Grady

The problem in treating all shortcuts as symlinks is in the way they
are stored when using a Cygwin driven backup (e.g. tar on a tape).
`tar' recognizes symlinks and stores only the link information in
the tar archive.  Native Windows shortcuts contain several additional
information besides the naked link to the target file, e.g. an icon
or the "Start in normal window/minimized/maximized" info.

The first version of the shortcut code in Cygwin treated all shortcuts
as symlinks.  Unfortunately we got complaints from users which lost
information in native Windows shortcuts when backing them up.  So we
decided to treat only shortcuts created by Cygwin tools as symlinks.

These are the technical facts.

The _real_ problem is that you can't make it in a way so that all
people are satisfied.  Somebody complains always.

Corinna

> ----- Original Message -----
> From: "Oren Teich" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, December 01, 2001 2:30 PM
> Subject: Shortcuts and symlinks
> 
> 
> > Hello,
> > I am running the cygwin 1.3.5 on an XP Pro machine.
> > I'm trying to have shortcuts created in explorer be recognized as symlinks
> > by cygwin, but to no avail.  At the most basic, if I create a directory
> > called foo in my home dir, then in explorer drag and create a shortcut
> > called bar, I see the bar.lnk file, but I can't change dir into it.  file
> > shows it as a ms shortcut:
> >     :~$ file bar.lnk
> >     bar.lnk: ms-Windows shortcut
> > I'd also like to get this working for files, drag file as shortcuts in
> > explorer and have them appear as symlinks in cygwin.  This fails in the
> same
> > way.
> >
> > After reading the faq, and in particular section 40 (Why can't I cd into a
> > shortcut?) I'm particularly confused.  The quote
> >     "Since version 1.3.0, Cygwin treats shortcuts as symlinks. "
> > implies that this should just work, or am I missunderstanding how cygwin
> > treats shortcuts?
> >
> > Any ideas?
> > thanks,
> > Oren
> >
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting:         http://cygwin.com/bugs.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to