Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: RE: LS and spaces in path names (the xth) Date: Tue, 28 Jun 2005 15:15:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: <1478765723@web.de> Message-ID: ----Original Message---- >From: Andreas Eibach >Sent: 28 June 2005 14:14 > fix this in cygwin (as it _definitely_ works in Linux, I'm glad you're so definite about this, it's good to have such confidence in your own beliefs that you feel no need to verify them against reality. > ls -hog "CD *" > ls: CD *: No such file or directory > > also > > ls -hog "CD [12]*" > ls: CD [12]*: No such file or directory > > fails. > > But > > ls -hog "CD*[12]*" > > WORKS. I notice that you cut and pasted the output from the other commands to show they failed, but you didn't cut and paste the output from this one to show it works. That's because you can't. That's because it doesn't. Here, let me show you: -----------------------------snip----------------------------- dk AT mace /artimi/firmware> cd test dk AT mace /artimi/firmware/test> touch CD0.dat dk AT mace /artimi/firmware/test> touch CD\ 1\ -\ Multimedia.dat dk AT mace /artimi/firmware/test> touch CD\ 2\ -\ Multimedia.dat dk AT mace /artimi/firmware/test> ls -hog "CD *" ls: CD *: No such file or directory dk AT mace /artimi/firmware/test> ls -hog "CD [12]*" ls: CD [12]*: No such file or directory dk AT mace /artimi/firmware/test> ls -hog "CD*[12]*" ls: CD*[12]*: No such file or directory dk AT mace /artimi/firmware/test> uname -a CYGWIN_NT-5.1 mace 1.5.18(0.132/4/2) 2005-06-24 11:27 i686 unknown unknown Cygwin dk AT mace /artimi/firmware/test> -----------------------------snip----------------------------- > You can't deny at least one of these shown DO work in Unix and Linux. Yes, I can, because unlike you, I actually tried it, and you DIDN'T. -----------------------------snip----------------------------- [dk AT pepper test]$ touch CD0.dat [dk AT pepper test]$ touch CD\ 1\ -\ Multimedia.dat [dk AT pepper test]$ touch CD\ 2\ -\ Multimedia.dat [dk AT pepper test]$ ls -hog total 0 -rw-r--r-- 1 0 Jun 28 2005 CD 1 - Multimedia.dat -rw-r--r-- 1 0 Jun 28 2005 CD 2 - Multimedia.dat -rw-r--r-- 1 0 Jun 28 2005 CD0.dat [dk AT pepper test]$ ls -hog "CD *" ls: CD *: No such file or directory [dk AT pepper test]$ ls -hog "CD [12]*" ls: CD [12]*: No such file or directory [dk AT pepper test]$ ls -hog "CD*[12]*" ls: CD*[12]*: No such file or directory [dk AT pepper test]$ uname -a Linux pepper.cam.artimi.com 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux [dk AT pepper test]$ -----------------------------snip----------------------------- That's why I can post genuine cut-and-pasted output from my tests, but you have to falsify the output from yours. There are two VERY worthwhile lessons to be learnt from this: 1) Don't EVER put simulated output in a post. Only ever cut-and-paste it from a real shell prompt. 2) Don't make claims about something that you haven't actually tried yourself. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/