read builtin does not timeout when using readline for input

Bug #1317476 reported by John Lenton on 2014-05-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Undecided
Unassigned

Bug Description

As of 14.04 the read builtin seemingly ignores -t if -e is provided.

In 13.10,

$ time read -t2 -e -p "? "
?
real 0m2.000s
user 0m0.000s
sys 0m0.000s

In 14.04,

$ time read -t2 -e -p "? "
? ^C
real 0m5.254s
user 0m0.000s
sys 0m0.000s

Related branches

John Lenton (chipaca) on 2014-05-08
description: updated
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bash - 4.3-8ubuntu1

---------------
bash (4.3-8ubuntu1) utopic; urgency=medium

  * Merge with Debian; remaining changes:

bash (4.3-8) unstable; urgency=medium

  * Apply upstream patches 012 - 022, fixing the issues:
    - When a SIGCHLD trap runs a command containing a shell builtin while a
      script is running `wait' to wait for all running children to complete,
      the SIGCHLD trap will not be run once for each child that terminates.
    - Using reverse-i-search when horizontal scrolling is enabled does not
      redisplay the entire line containing the successful search results.
    - Under certain circumstances, $@ is expanded incorrectly in contexts
      where word splitting is not performed.
    - When completing directory names, the directory name is dequoted twice.
      This causes problems for directories with single and double quotes in
      their names.
    - An extended glob pattern containing a slash (`/') causes the globbing
      code to misinterpret it as a directory separator.
    - The code that creates local variables should not clear the `invisible'
      attribute when returning an existing local variable. Let the code that
      actually assigns a value clear it.
    - When assigning an array variable using the compound assignment syntax,
      but using `declare' with the rhs of the compound assignment quoted, the
      shell did not mark the variable as visible after successfully performing
      the assignment.
    - The -t timeout option to `read' does not work when the -e option is used.
      LP: #1317476.
    - When PS2 contains a command substitution, here-documents entered in an
      interactive shell can sometimes cause a segmentation fault.
    - When the readline `revert-all-at-newline' option is set, pressing newline
      when the current line is one retrieved from history results in a double
      free and a segmentation fault. Closes: #747341.
    - Using nested pipelines within loops with the `lastpipe' option set can
      result in a segmentation fault.
  * Fix typo in package description. Closes: #707810.
 -- Matthias Klose <email address hidden> Mon, 04 Aug 2014 09:35:20 +0200

Changed in bash (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers