bug-bash
[Top][All Lists]
Advanced

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

Re: bash3 on FreeBSD weirdness


From: Chet Ramey
Subject: Re: bash3 on FreeBSD weirdness
Date: Thu, 29 Jun 2006 11:38:10 -0400
User-agent: Thunderbird 1.5.0.4 (Macintosh/20060530)

Miek Gieben wrote:
> [On 29 Jun, @03:56, Chet Ramey wrote in "Re: bash3 on FreeBSD weirdness ..."]
>> Miek Gieben wrote:
>>
>>> The mirror.sh script uses a 'while -r read'-loop
>>> to read from standard input. It looks like the while loop terminates
>>> after 1 loop on FreeBSD, where as it goes on Linux. How can this be?
>> Since you didn't attach the script, there's not enough information to
>> say.
> 
> okay, here it it. 
> 
> Basicly the function local_mirror() (line 167) works, and
> remote_mirror() (line 257) doesn't (on FreeBSD that is).

The root cause is probably that something is consuming all of the
input from stdin (the pipe) on FreeBSD and not on Linux.  I suspect
the call to `head'.  The two implementations probably read and buffer
differently.  This happens all the time, mostly with ssh.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
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]