[BusyBox] [PATCH] ASH's read bugs
Paul Fox
pgf at brightstareng.com
Wed Sep 7 17:04:35 UTC 2005
i've committed the patch from bug 242 to svn, which independently
(of this mail and bug 348) addressed the '-t timeout" bugs, and
added "-n nchars" functionality. based on bug 348 and this mail,
i also added "-s", for silent reads.
paul
>
> As I'm seeing patches beeing submited in the maillist, I'm posting this
> patch both here and in the bug report site. Here follows the
> description:
>
> There is some bugs in ASH's read. I've fixed those that I found and
> added a new feature. Here they are:
>
> - Timeout:
> - The timeout option counts only the first char: it will stop counting
> the time after you press the first key;
>
> - When the timeout option is used, the first char cannot be erased and
> is handled wrongly if it is a backslash and/or with IFS environment
> variable;
>
> - Some special characters, when in the first field, cannot be shown or
> are treated wrong;
>
> - The exit code is wrong and the environment variable is empty when
> the timeout is expired;
>
> - Silent:
>
> - I added a `silent' feature: when the -s argument is provided, the
> characters are not echoed;
>
> The comparisons I made was using `bash' and `zsh'. The patch is
> attached.
>
> --
> Fernando Silveira <fsilveira at gmail.com>
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list