committing:

Summary      0000242: ash: read -t broken
this also implements -n and -s options to read.  (they're configured
together because most of their code is in common, and separating them
seemed silly.
This commit is contained in:
Paul Fox
2005-09-07 16:56:02 +00:00
parent a70aa86e25
commit 02eb934b0f
2 changed files with 111 additions and 61 deletions

View File

@@ -53,16 +53,22 @@ config CONFIG_ASH_JOB_CONTROL
help
Enable job control in the ash shell.
config CONFIG_ASH_TIMEOUT
bool " Enable read timeout support."
config CONFIG_ASH_READ_NCHARS
bool " Enable 'read -n N' and 'read -s' support"
default n
depends on CONFIG_ASH_JOB_CONTROL
depends on CONFIG_ASH
help
This option provides read -t <seconds> support.
'read -n N' will return a value after N characters have been read.
'read -s' will read without echoing the user's input.
read builtin which allows the function to pass control back
if no character input is read from the terminal within a set
number of seconds.
config CONFIG_ASH_READ_TIMEOUT
bool " Enable 'read -t S' support."
default n
depends on CONFIG_ASH
help
'read -t S' will return a value after S seconds have passed.
This implementation will allow fractional seconds, expressed
as a decimal fraction, e.g. 'read -t 2.5 foo'.
config CONFIG_ASH_ALIAS
bool " Enable alias support"