pkgsrc-Users archive

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

Re: pkg_alternatives, Darwin and locale



Christian Biere wrote:
> while read line; do :; done < "$file"

> It would be nice if the shells were smart enough to enable line buffered
> I/O in this case as it should have no side-effects here.

Actually, bash and ksh seem to do this at least they're calling read()
with a single-byte buffer unlike sh.

-- 
Christian


Home | Main Index | Thread Index | Old Index