-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-01-10 at 06:51 -0800, Randall R Schulz wrote:
So the separate man page read(1) has dissapeared, it refers the reader to bash(1) instead, and then read(1p) might be obsolete. That must be why you are getting a different page than me.
What do you get from this command:
% apropos read |egrep -i '^read \(1' read (1) [bashbuiltins] - bash built-in commands, see bash(1) read (1p) - read a line from standard input
The same thing. But I think that the OP doesn't, as "man read" produces a diferent page.
I have tried your piece of code, and I suppose I get the "wrong" result. Each time I do " echo hello >> fifo" I get:
...
Which shell do you use? BASH also has many operational options, though offhand I don't see one that should effect the read command's ability to effectively implement the semantics of its "-t" option.
Bash, same as he does. He posted a second script that works as intended. It's an interesting trick he did: it seems he asociates a file descriptor to the named pipe, and uses the descriptor instead. Then the timeout option for "read" works. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDxBEKtTMYHG2NR9URAoduAJ9fVo7cZT3kEdj1paYKJBvu67kstgCfWa2l 4b1DxAbCXTIvlbue5rQ4lPE= =b4sJ -----END PGP SIGNATURE-----