[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reading /dev/stdin Input with a Timeout
From: |
J Naman |
Subject: |
Reading /dev/stdin Input with a Timeout |
Date: |
Wed, 13 Dec 2023 20:07:55 -0500 |
Date: Thu Dec 14 2023 00:34:43 UTC
Configuration Information [Automatically generated, do not change]:
Gawk Version: GNU Awk 5.3.0, API 4.0
Machine: AMD64(64-bit gawk)
OS: Windows_NT = Win 7 [Version 6.1.7601]
platform: mingw
LC_ALL: C
I have read: https://www.gnu.org/software/gawk/manual/html_node/Bugs.html
Yes or No: Yes
Description:
PROCINFO["/dev/stdin", "READ_TIMEOUT"] = 1000
getline < "/dev/stdin"
# does not timeout in 1 second; waits (forever) until Return key is pressed
# ERRNO is not set if timeout is exceeded
# Ref: 4.11 Reading Input with a Timeout, p.96
Comment: This behavior MIGHT be due to the Mingw-console and not be a bug.
print "Hello World" >"/dev/con" works on gawk mingw platform.
Obviously this is not a debilitating bug, but I thought that I should
report it.
- Reading /dev/stdin Input with a Timeout,
J Naman <=
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/13
- Message not available
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Andrew J. Schorr, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
Re: Reading /dev/stdin Input with a Timeout, Eli Zaretskii, 2023/12/14