diff options
author | Paul Fox | 2005-09-07 16:56:02 +0000 |
---|---|---|
committer | Paul Fox | 2005-09-07 16:56:02 +0000 |
commit | 02eb934b0f7120cfb783536d6b27f7e092fb991b (patch) | |
tree | 1e877e7458d4d84d4e26ebcf92435021c23872d1 /shell/Config.in | |
parent | a70aa86e25bd7969e846aff64206458b56b66c2c (diff) | |
download | busybox-02eb934b0f7120cfb783536d6b27f7e092fb991b.zip busybox-02eb934b0f7120cfb783536d6b27f7e092fb991b.tar.gz |
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.
Diffstat (limited to 'shell/Config.in')
-rw-r--r-- | shell/Config.in | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/shell/Config.in b/shell/Config.in index f9fb848..eb46166 100644 --- a/shell/Config.in +++ b/shell/Config.in @@ -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" |