[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... well this is the scripts: http://www.miek.nl/projects/rdup/svn/trunk/sh-tools/mirror.sh.in > > 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. > > With ssh for batch mode scripts that are not expected to read stdin it > is important to include the -n option. Otherwise ssh itself consumes > stdin. > > printf "one\ntwo\nthree\n" | > ( > ssh -n example.com date > grep one > ) thanks, I might need this in the near future :-) -- grtz, - Miek http://www.miek.nl PGP: 6A3C F450 6D4E 7C6B C23C F982 258B 85CF 3880 D0F6
signature.asc
Description: Digital signature
_______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash