process substitution can't be redirected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ksh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ksh
This produces a syntax error:
$ grep -H a < <(echo a)
ksh: syntax error: `<(' unexpected
This works:
$ grep -H a <(echo a)
/dev/fd/4:a
Contrast this with Bash and zsh in which both forms work:
$ bash -c 'grep -H a < <(echo a)'
(standard input):a
$ bash -c 'grep -H a <(echo a)'
/dev/fd/63:a
$ zsh -c 'grep -H a <(echo a)'
/proc/self/fd/12:a
$ zsh -c 'grep -H a < <(echo a)'
(standard input):a
- - - - -
ksh version:
$ echo ${.sh.version}
Version JM 93t+ 2009-05-01
package:
$ apt-cache policy ksh
ksh:
Installed: 93t+-2
Candidate: 93t+-2
Version table:
*** 93t+-2 0
500 http://
100 /var/lib/
Ubuntu release:
$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
Bash versions tested (for reference):
GNU bash, version 3.2.51(24)-release (i686-pc-cygwin)
GNU bash, version 4.0.33(1)-release (i486-pc-linux-gnu)
GNU bash, version 4.1.9(2)-release (i686-pc-linux-gnu)
zsh 4.3.10 (i686-pc-linux-gnu)
Thank you for taking the time to report this bug. We have tried to recreate this on the latest release of Ubuntu, but cannot reproduce it. This bug is being marked as Invalid. If you believe the problem to still exist in the latest version of Ubuntu, please comment on why that is the case and change the bug status to NEW.