Subject: Re: Re: [ast-users] ksh bugs?
--------

> This works nicely with ksh93, even when archive data is piped to stdin.
> With most other shells, this code fails because 'read' consumes data 
> intended for 'head'.
> 
> Philippe Bergheaud
> [email protected]
> 

The POSIX standard requires that shells to not consume data indented
for 'head' in this case.  Without sockepair or peekable pipes,
an implementation would need to read a byte at a time to be correct
and this would run an order of magniture or more slower.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to