I've been using cygpath since b20.1 and the arguments I use, -u, -w, and -p
have existed since cygpath existed. I do not use the more advanced options
like printing out the windows system path.
> -----Original Message-----
> From: Troy Noble [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 1:59 PM
> To: 'Schewe, Jon (MN65)'; Jde List (E-mail)
> Subject: RE: jde-convert-cygwin-path improvement
>
>
> You should be aware that "cygpath" did not exist in Cygnus b20.1,
> and it's arguments have changed slightly since Cygwin 1.0 (the
> commercial CD), so the cygpath you are calling will probably
> only work for users with cygwin 1.1.x and newer.
>
> You should probably document this somewhere to avoid a new FAQ ;->
>
> Troy
>
> -----Original Message-----
> From: Schewe, Jon (MN65) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 9:09 AM
> To: Jde List (E-mail)
> Subject: jde-convert-cygwin-path improvement
>
>
> Seems that jde-convert-cygwin-path does not know about the
> mount table, this
> causes real problems with mount points. Since cygwin comes
> with a utility,
> cygpath, that will do these conversions correctly for you
> I've written a
> method that calls cygpath to do the conversion and hacked
> jde-convert-cygwin-path to use it.
>
> (defun cygwin-path-to-mswindows-path-jps (path)
> "Converts a cygwin path to an mswindows path. Requires
> that cygpath is in
> your path."
> (interactive)
> (save-excursion
> (let ((buf-name "*cygwin-jps-output*"))
> (shell-command (concat "cygpath -w -p '" path "'") buf-name)
> (let ((output (buffer-substring nil nil buf-name)))
> (kill-buffer buf-name)
> (replace-in-string output "\n" "")))))
>
> (defun jde-convert-cygwin-path (path &optional separator)
> (cygwin-path-to-mswindows-path-jps (replace-in-string path
> ";" ":")))
>
> ---
> Jon Schewe | [EMAIL PROTECTED]
> NOTE: My first name has no 'h' in it! Please be observant
> *My views may not represent those of my employers
>