bug-bash
[Top][All Lists]
Advanced

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

Re: devel/ hangs in globbing


From: Chet Ramey
Subject: Re: devel/ hangs in globbing
Date: Wed, 12 Dec 2012 14:52:46 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/12/12 12:58 PM, Raphaël Droz wrote:
> Using the devel/ branch, with default options (simple ./configure), I
> found that *sourcing* such a script would cause bash to hang using 100%
> CPU. This does not happen using 4.2_p39.
> 
>> #!/bin/bash
>> shopt -s extglob
>> glob='@(|))'
>> for i in /tmp/!($glob); do echo $i; done

Thanks for the report.  Luckily it was a quick and easy fix.  It will be
in the next development snapshot.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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