develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #56348] glob() with spaces - documentation unclear

Thread Previous
From:
H.Merijn Brand
Date:
June 26, 2008 03:31
Subject:
Re: [perl #56348] glob() with spaces - documentation unclear
Message ID:
20080626123148.3a9158a2@pc09.procura.nl
On Thu, 26 Jun 2008 20:26:52 +1000, Paul Fenwick
<pjf@perltraining.com.au> wrote:

> H.Merijn Brand wrote:
> 
> >> "What would csh do?"
> > 
> > $ touch foo.c baar.o "foo bar.o"
> > $ ls *.c *.o
> > baar.o  foo bar.o  foo.c  xx.c
> 
> Sorry, that was a poor attempt at humour on my behalf, alluding to the "What 
> would X do?" meme that occasionally floats about.
> 
> Having said that, given that *, ?, [a-z], and {foo,bar,baz} all seem to work 
> the same way in both csh and bash, I don't actually know what csh does 
> differently to bash[1].

% ls %.{c,o}
baar.o  foo bar.o  foo.c  xx.c


-- 
H.Merijn Brand          Amsterdam Perl Mongers  http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About