[Bug 622106] Re: history expansion conflicts with variable expansion, maybe token parsing issue
Launchpad Bug Tracker
622106 at bugs.launchpad.net
Tue Jun 12 07:31:27 UTC 2012
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: bash (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/622106
Title:
history expansion conflicts with variable expansion, maybe token
parsing issue
Status in “bash” package in Ubuntu:
Confirmed
Bug description:
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-discuss at 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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/622106/+subscriptions
More information about the foundations-bugs
mailing list