delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/01/13/13:12:13

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <20020113181209.54956.qmail@web20009.mail.yahoo.com>
Date: Sun, 13 Jan 2002 10:12:09 -0800 (PST)
From: Joshua Franklin <joshuadfranklin AT yahoo DOT com>
Subject: cygpath patch
To: cygwin-apps AT cygwin DOT com
MIME-Version: 1.0

I've put together a prospective patch to cygpath that
adds 4 new options:
  -D|--desktop          print `Desktop' directory
  -E|--alldesktop       print (all users') `Desktop'
directory
  -P|--smprograms       print Start Menu `Programs'
directory
  -Q|--allsmprograms    print (all users') Start Menu
`Programs' directory

I'm not at all sure on the names. -D and -P make sense
to me, but the other two are
just the next letter alphabetically. For example, the
-E option on my machine outputs:
$ ./cygpath.exe -E
/c/Documents and Settings/All Users/Desktop

This patch would make possible things like:
$ ln -s /usr/doc/mutt-1.2.5i/html/manual.html
"$(./cygpath.exe -D)"/mutt-manual.html
from scripts without worrying about whether the
Desktop directory is the same on the machine 
you're writing it for.

My only question is whether I would need to change the
output of -v or if that's done internally:
$ ./cygpath.exe -v
Cygwin path conversion version 1.1
Copyright 1998,1999,2000,2001 Red Hat, Inc.

Well, and I guess I am also asking whether this is a
stupid idea and I should use this only on 
my own machine, or else to send in the patch. :)

My eventual goal was to make it possible to link FAQs
(local or online), manuals, or executables 
(rxvt) to the "Cygwin" Start Menu folder (if it
exists) from postinstall scripts. But it looks like ln
can 
only link files with no options allowed. I see in the
setup.exe code that there is a "mklink2.c" that 
accomplishes what I'd been wanting. Is there any
cygwin util that utilizes this code or should I 
roll my own?

Thanks.
Joshua Daniel Franklin

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019