Public bug reported:
Binary package hint: bash
This is on 10.04 and also with upstream's pure bash 4.2 with no Debian
or Ubuntu patches.
$ echo bar >foo
$ >bar
$ ls `cat foo`
bar
$ wc !$
wc `cat foo`
0 0 0 bar
$ ls $(cat foo)
bar
$ wc !$
wc )
-bash: syntax error near unexpected token `)'
$ ls $(<foo)
bar
$ wc !$
wc )
-bash: syntax error near unexpected token `)'
$
I'd expect !$ to consider the last word to be $(...) just as it is happy
with `...`. zsh does.
** Affects: bash (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/791263
Title:
!$ works with `` but not $()
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs