cc: [email protected]
Subject: Re: [ast-users] read -d hangs when reading from <() pipes
--------
You are using
ksh -c 'read -d "3" r <(printf "x123hello\n") ; printf "|%s|\n" "$r"'
However, <(printf "x123hello\n") is a command argument, not a redirection.
I think that you meant to use
ksh -c 'read -d "3" r < <(printf "x123hello\n") ; printf "|%s|\n" "$r"'
which produces
|x12|
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users