delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.9 required=5.0 tests=AWL,BAYES_40,DATE_IN_FUTURE_12_24,J_CHICKENPOX_83 |
X-Spam-Check-By: | sourceware.org |
From: | "David Christensen" <dpchrist AT holgerdanske DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | pipelines with paths containing spaces |
Date: | Mon, 31 Aug 2009 01:27:06 -0700 |
Message-ID: | <C805838568BA4CBA81CA871CDED956D7@p43400e> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
------=_NextPart_000_003D_01CA29DA.26FF10E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cygwin: I am having trouble using pipelines with paths containing spaces: 2009-08-31 01:16:32 Administrator AT p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ /cygdrive/c/Documents and Settings/ 2009-08-31 01:16:50 Administrator AT p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | xargs ls ls: cannot access /cygdrive/c/Documents: No such file or directory ls: cannot access and: No such file or directory ls: cannot access Settings/: No such file or directory 2009-08-31 01:16:55 Administrator AT p43400e ~ $ ls `ls -d /cygdrive/c/Documents\ and\ Settings/` ls: cannot access /cygdrive/c/Documents: No such file or directory ls: cannot access and: No such file or directory ls: cannot access Settings/: No such file or directory I tried writing a Perl script to escape spaces, but that didn't work. I tried writing a Perl script to wrap paths in single quotes and escape single quotes, but that didn't work. I tried searching the mailing list archive, the FAQ, and Google variations on 'cygwin pipeline spaces', but didn't come up with a solid hit. I installed Cygwin two days ago. Attached please find cygcheck.out. Any suggestions? TIA, David ------=_NextPart_000_003D_01CA29DA.26FF10E0 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygwin Configuration Diagnostics Current System Time: Mon Aug 31 01:18:17 2009 Windows XP Professional Ver 5.1 Build 2600 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem C:\cygwin\bin C:\cygwin\usr\sbin Output from C:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1006(Debugger Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1006(Debugger Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER =3D 'Administrator' PWD =3D '/home/Administrator' CYGWIN =3D 'ntsec' HOME =3D '/home/Administrator' MAKE_MODE =3D 'unix' HOMEPATH =3D '\Documents and Settings\Administrator\My Documents' MANPATH =3D ':/home/Administrator/local/man' HOSTNAME =3D 'p43400e' TERM =3D 'cygwin' SHELL =3D '/bin/bash' PROCESSOR_IDENTIFIER =3D 'x86 Family 15 Model 4 Stepping 1, GenuineIntel' WINDIR =3D 'C:\WINDOWS' SSH_CLIENT =3D '127.0.0.1 1272 22' CVSROOT =3D 'dpchrist AT cvs DOT holgerdanske DOT com:/cvs/dpchrist' OLDPWD =3D '/home/Administrator/Dpchrist-File-Newest' USERDOMAIN =3D 'P43400E' SSH_TTY =3D '/dev/tty0' OS =3D 'Windows_NT' ALLUSERSPROFILE =3D 'C:\Documents and Settings\All Users' TEMP =3D '/cygdrive/c/WINDOWS/TEMP' COMMONPROGRAMFILES =3D 'C:\Program Files\Common Files' PAGER =3D '/usr/bin/less' PROCESSOR_LEVEL =3D '15' FTP_PASSIVE =3D '1' MAIL =3D '/var/spool/mail/Administrator' SYSTEMDRIVE =3D 'C:' EDITOR =3D 'vim' LANG =3D 'C' USERPROFILE =3D 'C:\Documents and Settings\Administrator' PS1 =3D '\D{%Y-%m-%d %H:%M:%S} \u@\h \w\n\$ ' LOGONSERVER =3D '\\P43400E' PROCESSOR_ARCHITECTURE =3D 'x86' HISTCONTROL =3D 'ignoredups' SHLVL =3D '1' OSTYPE =3D 'cygwin' PATHEXT =3D '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE =3D 'c:' COMSPEC =3D 'C:\WINDOWS\system32\cmd.exe' LESS =3D '-R' LOGNAME =3D 'Administrator' TMP =3D '/cygdrive/c/WINDOWS/TEMP' SYSTEMROOT =3D 'C:\WINDOWS' PRINTER =3D 'Microsoft Office Document Image Writer' CVS_RSH =3D 'ssh' PROCESSOR_REVISION =3D '0401' SSH_CONNECTION =3D '127.0.0.1 1272 127.0.0.1 22' INFOPATH =3D '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES =3D 'C:\Program Files' NUMBER_OF_PROCESSORS =3D '2' COMPUTERNAME =3D 'P43400E' _ =3D '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) =3D '/cygdrive' cygdrive flags =3D 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D 'C:\cygwin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D 'C:\cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D 'C:\cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 c: hd NTFS 76316Mb 14% CP CS UN PA FC p43400e d: cd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Not Found: crontab Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: C:\cygwin\bin\kill.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\mv.exe Not Found: patch Found: C:\cygwin\bin\perl.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\ssh.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe Found: C:\cygwin\bin\test.exe Not Found: vi Found: C:\cygwin\bin\vim.exe 61k 2009/03/02 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygbz2-1.dll" v0.0 ts=3D2009/3/1 18:52 7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygcrypt-0.dll" v0.0 ts=3D2003/10/19 0:57 1075k 2009/03/25 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=3D4.0 img=3D1.0 sy= s=3D4.0 "cygcrypto-0.9.8.dll" v0.0 ts=3D2009/3/25 10:21 943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygdb-4.5.dll" v0.0 ts=3D2007/12/17 5:12 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygdb_cxx-4.5.dll" v0.0 ts=3D2007/12/17 5:12 118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygexpat-1.dll" v0.0 ts=3D2008/5/8 21:03 40k 2009/03/01 C:\cygwin\bin\cygform-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform-8.dll" v0.0 ts=3D2009/2/28 18:40 41k 2009/03/27 C:\cygwin\bin\cygform-9.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform-9.dll" v0.0 ts=3D2009/3/26 17:37 42k 2009/03/12 C:\cygwin\bin\cyggcc_s-1.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cyggcc_s-1.dll" v0.0 ts=3D2009/3/6 3:54 19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cyggdbm-4.dll" v0.0 ts=3D2009/2/25 23:55 8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=3D4.0 img=3D1.0 s= ys=3D4.0 "cyggdbm_compat-4.dll" v0.0 ts=3D2009/2/25 23:56 24k 2009/06/23 C:\cygwin\bin\cyghistory6.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cyghistory6.dll" v0.0 ts=3D2009/6/23 5:20 270k 2009/04/23 C:\cygwin\bin\cygicons-0.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygicons-0.dll" v0.0 ts=3D2009/4/22 19:25 982k 2009/05/30 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygiconv-2.dll" v0.0 ts=3D2009/5/30 11:38 189k 2009/02/22 C:\cygwin\bin\cygidn-11.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygidn-11.dll" v0.0 ts=3D2009/2/22 9:43 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-2.dll" v0.0 ts=3D2003/8/10 14:50 31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-3.dll" v0.0 ts=3D2005/11/19 18:04 31k 2009/06/07 C:\cygwin\bin\cygintl-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-8.dll" v0.0 ts=3D2009/6/7 14:42 83k 2007/06/06 C:\cygwin\bin\cygmagic-1.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygmagic-1.dll" v0.0 ts=3D2007/6/6 3:41 21k 2009/03/01 C:\cygwin\bin\cygmenu-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu-8.dll" v0.0 ts=3D2009/2/28 18:38 21k 2009/03/27 C:\cygwin\bin\cygmenu-9.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu-9.dll" v0.0 ts=3D2009/3/26 17:36 24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=3D4.0 img=3D1.2 sys=3D4= .0 "cygminires.dll" v0.0 ts=3D2008/10/30 16:53 66k 2009/03/01 C:\cygwin\bin\cygncurses++-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++-8.dll" v0.0 ts=3D2009/2/28 18:50 335k 2009/03/27 C:\cygwin\bin\cygncurses++-9.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++-9.dll" v0.0 ts=3D2009/3/26 17:45 237k 2009/03/01 C:\cygwin\bin\cygncurses-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses-8.dll" v0.0 ts=3D2009/2/28 18:36 165k 2009/03/27 C:\cygwin\bin\cygncurses-9.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses-9.dll" v0.0 ts=3D2009/3/26 17:34 11k 2009/03/01 C:\cygwin\bin\cygpanel-8.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygpanel-8.dll" v0.0 ts=3D2009/2/28 18:38 11k 2009/03/27 C:\cygwin\bin\cygpanel-9.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygpanel-9.dll" v0.0 ts=3D2009/3/26 17:36 181k 2008/09/07 C:\cygwin\bin\cygpcre-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpcre-0.dll" v0.0 ts=3D2008/9/6 20:36 302k 2008/09/07 C:\cygwin\bin\cygpcrecpp-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcrecpp-0.dll" v0.0 ts=3D2008/9/6 20:36 7k 2008/09/07 C:\cygwin\bin\cygpcreposix-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcreposix-0.dll" v0.0 ts=3D2008/9/6 20:36 1543k 2008/07/03 C:\cygwin\bin\cygperl5_10.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cygperl5_10.dll" v0.0 ts=3D2008/6/30 9:06 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpopt-0.dll" v0.0 ts=3D2002/6/8 22:45 155k 2009/06/23 C:\cygwin\bin\cygreadline6.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygreadline6.dll" v0.0 ts=3D2009/6/23 5:20 232k 2009/03/25 C:\cygwin\bin\cygssl-0.9.8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygssl-0.9.8.dll" v0.0 ts=3D2009/3/25 10:22 66k 2009/03/27 C:\cygwin\bin\cygtic-9.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygtic-9.dll" v0.0 ts=3D2009/3/26 17:31 22k 2009/03/29 C:\cygwin\bin\cygwrap-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygwrap-0.dll" v0.0 ts=3D2009/3/28 23:09 65k 2009/03/02 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2009/3/1 17:19 1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2008/6/12 10:35 Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Thu Jun 12 19:34:46 CEST 2008 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Service : exim Display name : Exim Description : Mail Transfer Agent Current State : Stopped Command : /usr/bin/exim -bdf -q15m stdin path : /dev/null stdout path : /var/log/exim/cygrunsrv_out.log stderr path : /var/log/exim/cygrunsrv_err.log Environment : CYGWIN=3D"ntsec notraverse"=20 Process Type : Own Process Startup : Automatic Dependencies : Tcpip Account : LocalSystem Service : sshd Display name : CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Environment : CYGWIN=3D"ntsec"=20 Process Type : Own Process Startup : Automatic Dependencies : tcpip Account : LocalSystem Cygwin Package Information Last downloaded files to: C:\cygwin\setup Last downloaded files from: C:\cygwin\setup Package Version _update-info-dir 00828-1 alternatives 1.3.30c-3 ash 20040127-4 base-files 3.7-1 base-passwd 2.2-1 bash 3.2.49-22 bzip2 1.0.5-3 coreutils 6.10-2 crypt 1.1-1 csih 0.2.0-1 cvs 1.12.13-1 cygrunsrv 1.34-1 cygutils 1.3.4-1 cygwin 1.5.25-15 cygwin-doc 1.4-4 diffutils 2.8.7-1 editrights 1.01-2 expat 2.0.1-1 file 4.21-1 findutils 4.4.0-3 gawk 3.1.6-1 gettext 0.17-4 grep 2.5.3-1 groff 1.19.2-2 gzip 1.3.12-2 less 382-1 libbz2_1 1.0.5-3 libdb4.5 4.5.20.2-2 libexpat1 2.0.1-1 libexpat1-devel 2.0.1-1 libgcc1 4.3.2-2 libgdbm4 1.8.3-9 libiconv2 1.13-1 libidn11 1.9-1 libintl2 0.12.1-3 libintl3 0.14.5-1 libintl8 0.17-4 libncurses8 5.5-4 libncurses9 5.7-5 libpcre0 7.8-1 libpopt0 1.6.4-4 libreadline6 5.2.14-12 libwrap0 7.6-6 login 1.10-1 make 3.81-2 man 1.6e-1 minires 1.02-1 ncurses 5.7-5 openssh 5.1p1-10 openssl 0.9.8k-1 perl 5.10.0-5 perl_manpages 5.10.0-5 rebase 3.0-2 rsync 3.0.4-1 run 1.1.12-1 sed 4.1.5-2 tar 1.21-1 termcap 20050421-1 terminfo 5.7_20090228-1 terminfo0 5.5_20061104-2 texinfo 4.13-3 time 1.7-2 tzcode 2008h-1 vim 7.2-3 wget 1.11.4-3 which 2.20-1 whois 4.7.32-1 zlib 1.2.3-3 zlib-devel 1.2.3-3 zlib0 1.2.3-3 Use -h to see help about each section ------=_NextPart_000_003D_01CA29DA.26FF10E0 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ------=_NextPart_000_003D_01CA29DA.26FF10E0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |