[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect process substitution when brace expansion is used inside it.
From: |
Rajeev V. Pillai |
Subject: |
Incorrect process substitution when brace expansion is used inside it. |
Date: |
Wed, 17 Dec 2008 08:41:11 +0530 (IST) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -fomit-frame-pointer
-ftree-vectorize -march=native -mfpmath=sse -m3dnow -mmmx -msse -pipe
uname output: Linux athlon.localdomain 2.6.27 #1 PREEMPT Sat Nov 29 01:23:01
IST 2008 i686 GNU/Linux
Machine Type: i686-pc-linux-gnu
Bash Version: 3.2
Patch Level: 48
Release Status: release
Description:
Bash 3.2.48(1)-release does incorrect process substitution when
brace expansion is used inside a process substitution.
Repeat-By:
$ echo <( echo hello{0{1,6,9},10}.txt ) <( echo world{0{1,6,9},10}.txt )
produces (note: 8 processes corresponding to the 8 words
resulting from
the brace expansion above):
/dev/fd/63 /dev/fd/62 /dev/fd/61 /dev/fd/60 /dev/fd/59 /dev/fd/58
/dev/fd/57 /dev/fd/56
when it should produce only 2 processes (as ksh (AT&T Research)
93t 2008-11-04 does):
/dev/fd/63 /dev/fd/62
- Incorrect process substitution when brace expansion is used inside it.,
Rajeev V. Pillai <=