Re: bash3 on FreeBSD weirdness

2006-06-30 Thread Miek Gieben
[On 30 Jun, @07:32, Bob Proulx wrote in "Re: bash3 on FreeBSD weirdness ..."] > > > > differently. This happens all the time, mostly with ssh. > > I did not see a 'head' call anywhere in the script though. The one in trunk/ is already fixed, look in

Re: bash3 on FreeBSD weirdness

2006-06-29 Thread Bob Proulx
Miek Gieben wrote: > http://www.miek.nl/projects/rdup/svn/trunk/sh-tools/mirror.sh.in > > Chet Ramey wrote: > > > 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 implementa

Re: bash3 on FreeBSD weirdness

2006-06-29 Thread Miek Gieben
[On 29 Jun, @19:10, Bob Proulx wrote in "Re: bash3 on FreeBSD weirdness ..."] > Chet Ramey wrote: > > Miek Gieben wrote: > > > okay, here it it. > > Better would have been to share that with the mailing list. :-( hmmm, I thought I cc-ed it also the ml

Re: bash3 on FreeBSD weirdness

2006-06-29 Thread Bob Proulx
Chet Ramey wrote: > Miek Gieben wrote: > > okay, here it it. Better would have been to share that with the mailing list. :-( > 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 i

Re: bash3 on FreeBSD weirdness

2006-06-29 Thread Miek Gieben
[On 29 Jun, @17:38, Chet Ramey wrote in "Re: bash3 on FreeBSD weirdness ..."] > > 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 a

Re: bash3 on FreeBSD weirdness

2006-06-29 Thread Chet Ramey
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 termin

Re: bash3 on FreeBSD weirdness

2006-06-28 Thread Miek Gieben
[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 Free

Re: bash3 on FreeBSD weirdness

2006-06-28 Thread Chet Ramey
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. Chet --

bash3 on FreeBSD weirdness

2006-06-28 Thread Miek Gieben
[please cc me, I'm not on this list] Hello, I'm encoutering some weird behavoir with bash3 on freebsd. I've written a little tool that echo's a filelist (+optional content) to standard output. This list is then acted upon by a shell script. (www.miek.nl/projects/rdup is the program in question)