delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Thu, 24 May 2001 16:13:12 +0100 (BST) |
From: | "A.R. Thornton" <art27 AT hermes DOT cam DOT ac DOT uk> |
X-X-Sender: | <art27 AT green DOT csi DOT cam DOT ac DOT uk> |
To: | <cygwin AT cygwin DOT com> |
Subject: | cygpath returns a /r not /n |
Message-ID: | <Pine.SOL.4.33.0105241550400.20299-100000@green.csi.cam.ac.uk> |
MIME-Version: | 1.0 |
hi! I'm not sure if this a bug as such, just a mild irritation. When trying to pass gvim and other win32 programs unix pathnames I realised that they had to be converted into win32 names. So I wrote several little scripts, one called realpath and (for this example) gvim. gvims script went along the lines of: #!/bin/sh gvim -u c:/vim/_vimrc "`realpath "$@"`" and realpath goes along the lines: #!/bin/sh for i in "$@"; do case $i in -*) echo -n "$i$" ;; # - originally didn't have -n, so did do a /n *) cygpath -wa "i$" ;; esac echo -e '\n\c' #-this line had to be added to make gvim work done Before I added the echo '\n\c' when I tried to run gvim with more than one file gvim wouldn't read it as two separate filenames but as one list with ^@ between the two files, (is this \r ?) am I right in thinking that cygpath is to blame? (I did a source dive but couldn't find anything explicit in cygpath.cc) if cygpath is meant to return /r but not /n, why? -- Alright. Own up. Who swallowed it this time? art27 AT cam DOT ac DOT uk - Assistant Technical Director - Queens' Bats -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |