From 02eb934b0f7120cfb783536d6b27f7e092fb991b Mon Sep 17 00:00:00 2001 From: Paul Fox Date: Wed, 7 Sep 2005 16:56:02 +0000 Subject: 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. --- shell/Config.in | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'shell/Config.in') diff --git a/shell/Config.in b/shell/Config.in index f9fb8488f..eb4616672 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 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" -- cgit v1.2.3-55-g6feb