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 Date: Tue, 28 Jun 2005 15:35:34 +0200 (CEST) Message-ID: <27320112.1119965734424.JavaMail.adm-moff@moffice2.nsc.no> From: "Peter J. Acklam" To: Subject: SV: LS and spaces in path names (the xth) Cc: In-Reply-To: <1478765723@web.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2049_6482120.1119965734419" X-IsSubscribed: yes ------=_Part_2049_6482120.1119965734419 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I don't see the problem. > ls -hog "CD *" > ls: CD *: No such file or directory Of course. There is no file whose name is the four character string "CD *", so ls doesn't find anything. > ls -hog "CD [12]*" > ls: CD [12]*: No such file or directory Ditto. There is no file whose name is the six character string "CD [12]*", so ls doesn't find it. > ls -hog "CD*[12]*" > > WORKS. What do you mean by "WORKS"? I get $ ls -hog "CD*[12]*" ls: CD*[12]*: No such file or directory which is exactly as expected since there I have no file with the is no file whose name is the eight character string "CD*[12]*". If you want to list the CD-files with spaces, try $ ls -hog CD\ * -rw-r--r-- 1 0 Jun 28 15:30 CD 1 - Multimedia.dat -rw-r--r-- 1 0 Jun 28 15:30 CD 2 - Multimedia.dat $ ls -hog "CD "* -rw-r--r-- 1 0 Jun 28 15:30 CD 1 - Multimedia.dat -rw-r--r-- 1 0 Jun 28 15:30 CD 2 - Multimedia.dat Note that the asterisk can not be quoted. Peter ------=_Part_2049_6482120.1119965734419 Content-Type: text/plain; charset=us-ascii -- 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/ ------=_Part_2049_6482120.1119965734419--