bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange expansion of <(cat p.main.{optional,extra})


From: lucas
Subject: strange expansion of <(cat p.main.{optional,extra})
Date: Tue, 17 Apr 2007 11:33:33 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux beothuk.imag.fr 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 
2007 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.1
Patch Level: 17
Release Status: release

Description:
Hi,

The expansion of echo <(cat /etc/{passwd,motd}) is rather surprising:
$  echo <(cat p.main.{optional,extra})
++ cat p.main.optional
cat: p.main.optional: No such file or directory
++ cat p.main.extra
cat: p.main.extra: No such file or directory
+ echo /dev/fd/63 /dev/fd/62
/dev/fd/63 /dev/fd/62

I would have expected to be expanded to <(cat /etc/passwd /etc/motd) first.

Repeat-By:
echo <(cat /etc/passwd /etc/motd)

tested with bash 3.1 and 3.2. Someone else told me on IRC that 2.05 was also 
affected.

Lucas.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]