delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/22/10:42:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: "'Cygwin List'" <cygwin AT cygwin DOT com>
Subject: RE: cygpath -m (and -w) sometimes emits multi-line names
Date: Tue, 22 Feb 2005 15:42:45 -0000
MIME-Version: 1.0
In-Reply-To: <20050221185737.A3523@links.magenta.com>
Message-ID: <SERRANO9CkIgTlAHk3u00000028@SERRANO.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 22 Feb 2005 15:42:46.0015 (UTC) FILETIME=[279668F0:01C518F5]
Note-from-DJ: This may be spam

------=_NextPart_000_0029_01C518F5.279382C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

----Original Message----
>From: cygwin-owner On Behalf Of Raul Miller 
>Sent: 21 February 2005 23:58


> On Sun, Feb 20, 2005 at 03:21:35PM -0500, I wrote:
>> My mistake.  Sorry.
> 
> On second thought:
> 
> Both the man page and the usage information on cygpath indicate
> that it only accepts a single file name argument.  These should
> probably be updated.

  A fair point.  Attached :)

  Hmm.  Anyone out there know about utils.sgml better than me?  I have two
questions:

1)  Does it matter that the usage line is now longer than 80 chars?

2)  What's with the CDATA section ?

<example><title>Example <command>cygpath</command> usage</title>
<screen>
<![CDATA[
#!/bin/sh
if [ "${1}" = "" ];
	then
		XPATH=".";
	else
		XPATH="$(cygpath -w "${1}")";
fi
explorer $XPATH &
]]>
</screen>
</example>


  When I look at the generated manpage in info or man, the opening <![CDATA[
tag is displayed, but the closing ]]> tag has disapperared.  I think it's
probably not meant to be this way?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

------=_NextPart_000_0029_01C518F5.279382C0
Content-Type: application/octet-stream;
	name="cygpath-usage-patch.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygpath-usage-patch.diff"

? cygpath-usage-patch.diff
Index: cygpath.cc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/src/src/winsup/utils/cygpath.cc,v
retrieving revision 1.36
diff -p -u -r1.36 cygpath.cc
--- cygpath.cc	15 Mar 2004 21:34:12 -0000	1.36
+++ cygpath.cc	22 Feb 2005 12:36:25 -0000
@@ -65,7 +65,7 @@ usage (FILE * stream, int status)
 {
   if (!ignore_flag || !status)
     fprintf (stream, "\
-Usage: %s (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME\n\
+Usage: %s (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME [NAME=
 ...]\n\
        %s [-ADHPSW] \n\
 Convert Unix and Windows format paths, or output system path information\n\
 \n\
Index: utils.sgml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/src/src/winsup/utils/utils.sgml,v
retrieving revision 1.50
diff -p -u -r1.50 utils.sgml
--- utils.sgml	24 Dec 2004 21:58:38 -0000	1.50
+++ utils.sgml	22 Feb 2005 12:36:25 -0000
@@ -112,7 +112,7 @@ for example:</para>
 <sect2 id=3D"cygpath"><title>cygpath</title>
=20
 <screen>
-Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME
+Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME =
[NAME ...]
        cygpath [-ADHPSW]=20
 Convert Unix and Windows format paths, or output system path information
=20


------=_NextPart_000_0029_01C518F5.279382C0
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_0029_01C518F5.279382C0--

- Raw text -


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