Bash fails parsing certain statements using process-substitution

Bug #779848 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bash

The following 3-line shell script fragment produces a parser error:

cat < <(
    # '
    echo b
)

"./bashbug.sh: line 2: bad substitution: no closing `)' in <("

The statement parses correctly, if I remove the apostrophe from the comment. The bug is reproduceable also with the latest upstream bash v4.2, when compiled from source, so I guess it applies to natty, too.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: bash 4.1-2ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-28.50-generic 2.6.35.11
Uname: Linux 2.6.35-28-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon May 9 12:43:13 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bash

Revision history for this message
David (dvdkhlng) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.