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 [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash