bug-bash
[Top][All Lists]
Advanced

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

Re: Weird "/dev/fd/62: Permission denied"


From: Chet Ramey
Subject: Re: Weird "/dev/fd/62: Permission denied"
Date: Mon, 17 May 2010 17:40:46 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 5/1/10 12:25 AM, No Name wrote:
> 
> The following  $ while read l ; do continue; done < <(ls -l / 
> 2>/dev/null)fails on:  BASH_VERSINFO=4  BASH_VERSION=4.1.2(1)-release  
> SHLVL=1  (the machine I'm on doesn't have bashbug).with  """-bash: 
> /dev/fd/62: Permission denied"""and not on bash3, bash2. And not on bash4 
> with a $SHLVL -gt 1.
> Initially I was trying to narrow down a problem around some code that would 
> work just fine on bash2, but fail on bash4 after almost 1h (~1800 invocations 
> of that while loop) with:  """/home/jpa/myscript.sh: redirection error: 
> cannot duplicate fd: Too many open files"""Interestingly, taking the command 
> which is having the redirection issue fails at SHLVL 1 outright.

What OS and OS version?  I can't reproduce anything like this on
bash-4.1.5.

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



reply via email to

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