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://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 |
Date: | Tue, 28 Jun 2005 15:35:34 +0200 (CEST) |
Message-ID: | <27320112.1119965734424.JavaMail.adm-moff@moffice2.nsc.no> |
From: | "Peter J. Acklam" <pjacklam AT online DOT no> |
To: | <cygwin AT cygwin DOT com> |
Subject: | SV: LS and spaces in path names (the xth) |
Cc: | <pjacklam AT online DOT no> |
In-Reply-To: | <1478765723@web.de> |
Mime-Version: | 1.0 |
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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |