Public bug reported:

Binary package hint: bash

$ cat /etc/issue
Ubuntu 10.04.1 LTS \n \l


$ echo $BASH_VERSION
4.1.5(1)-release

$ sleep 5 & pid=$!
$ sleep 5 & pid=$!; echo $pid
bash: !: event not found
$ sleep 5 & pid=$! ; echo $pid
3434
$ (sleep 5 & pid=$!; echo $pid)
bash: !: event not found
$ (sleep 5 & pid=$\!; echo $pid)
$!
$ {sleep 5 & pid=$!; echo $pid;}
bash: !: event not found
$ 

Seems like the workaround is to include whitespace after the $!, however
that doesn't help existing scripts.

$ aptitude show bash
Package: bash
Essential: yes
State: installed
Automatically installed: no
Version: 4.1-2ubuntu3
Priority: required
Section: shells
Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Uncompressed Size: 3,576k
Depends: base-files (>= 2.1.12), debianutils (>= 2.15)
PreDepends: dash, libc6 (>= 2.11), libncurses5 (>= 5.6+20071006-3)
Recommends: bash-completion (>= 20060301-0)
Suggests: bash-doc
Conflicts: bash-completion (< 20060301-0)
Replaces: bash-completion (< 20060301-0), bash-doc (<= 2.05-1)

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
history expansion conflicts with variable expansion, maybe token parsing issue
https://bugs.launchpad.net/bugs/622106
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to