www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 19 Apr 2007 15:34:17 +0200 (CEST) |
From: | Jens Rasmussen <jsrm AT diku DOT dk> |
To: | cygwin AT cygwin DOT com |
Subject: | problem with globs using curly brackets and ^ |
Message-ID: | <Pine.LNX.4.61.0704191531570.3988@ask.diku.dk> |
MIME-Version: | 1.0 |
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 |
Hi I'm having a problem with globs using curly brackets and ^. I've searched the web+forum with no luck, so I'm sorry if an answer aleardy exists. I've tried the commands on a linux environment and they worked fine + I've read elsewhere that they should work in cygwin. So I assume that my config is wrong. I'm using bash 3.2.15(13)-release (i686-pc-cygwin) and I've just updated all packages. THE PROBLEM (using ls for illustration): $ ls Desktop.ini doc optimering test.txt bin music spaceninja FOLLOWING WORKS: $ ls -d {Desk*,doc*} Desktop.ini doc BUT: (I assume that the following is because it normally makes no sense) $ ls -d {Desk*} ls: cannot access {Desk*}: No such file or directory AND: (my actual problem) $ ls ^doc ls: cannot access ^doc: No such file or directory $ ls -d ^{Desk*,doc*} ls: cannot access ^Desk*: No such file or directory ls: cannot access ^doc*: No such file or directory - And yes, I'm a Linux/UNIX/Cygwin newb! Regards Jens Rasmussen -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |