I expected it should not return input file handle since we cannot write into 'sleep' command.
You don't write "into a sleep command". You write into a pipe. As long as the pipe isn't full, it'll report that it can accept data.
Perhaps you want Expect?
In reply to Re^3: Queries on open3
by ikegami
in thread Queries on open3
by thiagu_mvt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |