bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell limitation


From: Werner LEMBERG
Subject: Re: shell limitation
Date: Mon, 18 Aug 2003 10:35:24 +0200 (CEST)

> > The following
> > 
> >   for i = *.info; do ...
> > 
> > works with Bash but fails with other shells (which search for a file
> > called `*.info').
> 
> Sorry, I don't follow.  Can you give a complete example?
> 
> When I tried it with bash, it seemed to behave like other shells.
> E.g.,:
> 
> $ mkdir d
> $ cd d
> $ for i in *.info; do echo "$i"; done
> *.info
> $ 

Indeed.  But compare with this (I have bash 2.05.0):

  $ mkdir d
  $ cd d
  $ touch a.info b.info c.info
  $ for i in *.info; do echo "$i"; done
  a.info
  b.info
  c.info
  $

Some shells still search `*.info'.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]