[BusyBox 0000378]: ASH's read bug

bugs at busybox.net bugs at busybox.net
Wed Sep 7 17:03:08 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=378 
====================================================================== 
Reported By:                swrh
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   378
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             08-11-2005 18:52 PDT
Last Modified:              09-07-2005 10:03 PDT
====================================================================== 
Summary:                    ASH's read bug
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 made here was using `bash' and `zsh'. The patch is
attached.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0000242 ash:  read -t broken
====================================================================== 

---------------------------------------------------------------------- 
 pgf - 09-07-05 10:03  
---------------------------------------------------------------------- 
dup of 242, which has been applied as svn 11351 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-11-05 18:52  swrh           New Issue                                    
08-11-05 18:52  swrh           Status                   new => assigned     
08-11-05 18:52  swrh           Assigned To               => BusyBox         
08-11-05 18:52  swrh           File Added: ash-read.patch                    
08-13-05 11:04  swth           Issue Monitored: swth                        
09-07-05 10:00  pgf            Relationship added       duplicate of 0000242
09-07-05 10:03  pgf            Status                   assigned => closed  
09-07-05 10:03  pgf            Note Added: 0000497                          
======================================================================




More information about the busybox-cvs mailing list