Re: cygpath patch

2002-01-15 Thread Corinna Vinschen

On Mon, Jan 14, 2002 at 06:14:09PM -0800, Joshua Franklin wrote:
 Well, I've attached the patch in case anyone is 
 interested. It changes cygpath.exe to include the
 options:
   -A|--allusers use `All Users' directories
 instead of current user
   -D|--desktop  print `Desktop' directory
   -P|--smprograms   print Start Menu `Programs'
 directory

Thanks for the patch.  I applied it to my local sandbox but I
was somewhat surprised about the behaviour since

  cygpath -D -A

has another result as

  cygpath -A -D

which is not what a user expects.  The options should be scanned
and after the scanning they should be evaluated (right after the
switch statement).  Would you mind to change your patch accordingly?

Corinna

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



Re: cygpath patch

2002-01-14 Thread Joshua Franklin

--- Charles Wilson [EMAIL PROTECTED] wrote:
 Joshua Franklin wrote:
 
  --- Charles Wilson [EMAIL PROTECTED] wrote:
  
 Sounds like a great idea to me.  Note however,
 than
 symbolic links are 
 implemented using windows shortcuts, so:
 
 ln -s foo.html `cygpatch -P`/foo_help.html
 
 will do what you want.
 
  
  Huh? That was my example. Except with the desktop
  directory, and I used $(...) instead of `...`
 
 Fine fine fine.  The point of my example was really
 unrelated to the 
 cygpath command itself.  You were talking about
 grabbing code from 
 setup.exe to assist in create a shortcut, or
 something -- I dunno 
 exactly 'cause I've deleted the message.
 
 My point was merely that you DON'T need to worry
 about that.  Just use 
 the 'ln -s' command -- because symbolic links ==
 windows shortcuts.
 
 --Chuck

Ah. But what if you want to link to:
rxvt.exe -rv -fn FixedSys -e /bin/bash --login -i
--or--
command.com /E:4096 /c bash.exe --login -i
from the working directory c:\cygwin\bin 
--or--
http://www.cygwin.com/FAQ/

My point is, there are a lot more possible options
in W32 shortcuts that seem to be supported by the
setup.exe mklink2.c COM interface. 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/