delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/16/05:27:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: jorg DOT schaible AT db DOT com
Subject: [PATCH] Cygpath enhancement
To: cygwin AT sourceware DOT cygnus DOT com
Date: Fri, 16 Jun 2000 10:25:56 +0000
Message-ID: <OFFB0AAD4D.157C5018-ON00256900.00375956@srv.uk.deuba.com>
X-MIMETrack: Serialize by Router on sdbo1003/DMGUK/DeuBaInt/DeuBa(Release 5.0.3 (Intl)|21
March 2000) at 16/06/2000 10:26:00 AM
MIME-Version: 1.0

--0__=00256900003759568f9e8a93df938690918c0025690000375956
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable


Hi,

using the Cygwin environment and maintaining a make system for several =
users there are often troubles because of users that have blanks in the=
ir paths. Since I've seen several requests for shart path names within =
the list I just added the option -s (or --short-name) to the cygpath ut=
ility that can be used in combination with the -w option to receive the=
 filenames or the path in the short form of Windows.

/cygdrive/c/Program Files/Internet Explorer $ cygpath -was IEXPLORE.EXE=

C:\PROGRA~1\INTER~\IEXPLORE.EXE
/cygdrive/c/Program Files/Internet Explorer $ cygpath -wp $CLASSPATH
.;C:\PROGRA~1\JBUILDER\JRE\LIB

Additionally I added an option -i (or --ignore) to prevent the Cygpath =
utility showing the "usage message" when the filename argument is omitt=
ed. This comes in handy using cygpath in make rules passing files as op=
tional argument to Windows/DOS based utilities. Otherwise the "usage me=
ssage" would always be printed using stderr.

RESFILE=3D
OBJFILE=3Dutil.obj

%.exe: %.obj $(RESFILE)
     link $(cygpath -w $<) $(cygpath -wi $(RESFILE))


Patches for cygpath.cc and utils.sgml attached made from the tarball so=
urce of cygwin-1.2.2.tar.gz.

Greetings,
J=F6rg

(See attached file: utils.sgml.diff)(See attached file: cygpath.cc.diff=
)=

--0__=00256900003759568f9e8a93df938690918c0025690000375956
Content-type: application/octet-stream; 
	name="=?iso-8859-1?Q?utils.sgml.diff?="
Content-Disposition: attachment; filename="=?iso-8859-1?Q?utils.sgml.diff?="
Content-transfer-encoding: base64



--0__=00256900003759568f9e8a93df938690918c0025690000375956
Content-type: application/octet-stream; 
	name="=?iso-8859-1?Q?cygpath.cc.diff?="
Content-Disposition: attachment; filename="=?iso-8859-1?Q?cygpath.cc.diff?="
Content-transfer-encoding: base64




--0__=00256900003759568f9e8a93df938690918c0025690000375956
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--0__=00256900003759568f9e8a93df938690918c0025690000375956--

- Raw text -


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