From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14664 invoked from network); 8 Mar 2007 04:51:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Mar 2007 04:51:54 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 92966 invoked from network); 8 Mar 2007 04:51:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Mar 2007 04:51:46 -0000 Received: (qmail 28108 invoked by alias); 8 Mar 2007 04:51:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11240 Received: (qmail 28099 invoked from network); 8 Mar 2007 04:51:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Mar 2007 04:51:38 -0000 Received: (qmail 91822 invoked from network); 8 Mar 2007 04:51:38 -0000 Received: from atom.smasher.org (69.55.237.145) by a.mx.sunsite.dk with SMTP; 8 Mar 2007 04:51:33 -0000 Received: (qmail 66827 invoked by uid 1000); 8 Mar 2007 04:51:30 -0000 Message-ID: <20070308045130.66826.qmail@smasher.org> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Wed, 7 Mar 2007 23:51:32 -0500 (EST) From: Atom Smasher MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt Subject: unexpected wildcard issue To: zsh-users@sunsite.dk X-POM: The Moon is Waning Gibbous (85% of Full) X-Hashcash: 1:20:0703080451:zsh-users@sunsite.dk::VjNKWtGoW6gG5yzQ:0000000000000 00000000000000000000000025s5 ### create some "xyz" file $ touch {1..10}.xyz ### check that they're there, using a wildcard $ ls *xyz 0.xyz 1.xyz 10.xyz 2.xyz 3.xyz 4.xyz 5.xyz 6.xyz 7.xyz 8.xyz 9.xyz ### create another file with a leading dash in the filename $ touch ./-11.xyz ### check again, with a wildcard $ ls *xyz ls: illegal option -- . usage: ls [-ABCFGHILPRSTWZabcdfghiklmnopqrstuwx1] [file ...] ::::::::::: should the shell protect expanded file names, as if they were entered in quotes? -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "It has become appallingly obvious that our technology has exceeded our humanity." -- Albert Einstein