| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| Reply-To: | <hauser AT acm DOT org> |
| From: | "Ralf Hauser" <ralfhauser AT gmx DOT ch> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | cygpath "$@" in a script: bug? |
| Date: | Mon, 10 Mar 2003 09:47:08 +0100 |
| Message-ID: | <KJEOKFJJEDMIGBEEJCHCGEODNKAA.ralfhauser@gmx.ch> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
in http://sources.redhat.com/ml/cygwin/2003-01/msg01707.html I thought to see how I should do this. The example works fine. But if I create a script that does the same echo "$@" | cygpath -w -f - and call it with testscript `/bin/ls /bin/ch*` I get C:\cygwin\bin\checkgid.exe \bin\chgrp.exe \bin\chmod.exe \bin\chown.exe \bin\chroot.exe is it possible that it chokes upon missing newlines (CR/LF)? Or even worse if I put in the long path: testscript `/bin/ls /cygdrive/c/cygwin/bin/ch*` cygpath: error converting "/cygdrive/c/cygwin/bin/checkgid.exe /cygdrive/c/cygwin/bin/chgrp.exe /cygdrive/c/cygwin/bin/chmod.exe /cygdrive/c/cygwin/bin/chown.exe /cygdrive/c/cygwin/bin/chroot.exe" or yet worse when I do that on my desktop with three test files a.txt, aa.txt and aaa.txt: rhauser AT PC:/<3>rhauser/Desktop> testscript `ls /cygdrive/c/Docume~1/rhauser/Desktop/a*.txt` c:\Docume~1\rhauser\Desktop\a.txt \cygdrive\c\Docume~1\rhauser\Desktop\aa.txt \cygdrive\c\Docume~1\rhauser\Desktop\aaa.txt so the first path is converted properly while number 2 and 3 are wrong? Any thoughts? Ralf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |