Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

runaway zselect

i would expect zselect to return an error and stop the while loop when "w" stops producing output. instead i'm seeing an infinite loop of blank lines, after "w" finishes:

while zselect -r 0
  read -r foo
  print -r -- $foo
done < <( w )

same thing reading from a coproc with "done <& p"

the weird thing is that i have it working as desired (reading from a coproc) in a script, but i can't reproduce it outside of the script... the weirder thing is that i can get this working when i test it:
	sysread -i 0 -o 1 -t 200 <& p
 but in the script mentioned above, it fails:
	coprocess: bad file descriptor

any ideas? thanks...


 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808

	"People have so manipulated the concept of freedom that it
	 finally boils down to the right of the stronger and richer to
	 take from the weaker and poorer whatever they still have."
		-- Theodor Adorno

Messages sorted by: Reverse Date, Date, Thread, Author