Gentoo Archives: gentoo-amd64

From: Lance Lassetter <lancelassetter@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Python-updater line 415 error
Date: Mon, 03 Aug 2009 06:21:45
Message-Id: 1249280500.5149.15.camel@localhost
In Reply to: Re: [gentoo-amd64] Python-updater line 415 error by Frank Peters
1 On Mon, 2009-08-03 at 02:16 -0400, Frank Peters wrote:
2 > On Mon, 03 Aug 2009 01:07:43 -0500
3 > Lance Lassetter <lancelassetter@×××××.com> wrote:
4 >
5 > > On Mon, 2009-08-03 at 01:59 -0400, Frank Peters wrote:
6 > > > cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO
7 > >
8 > > Frank,
9 > >
10 > > The 1st didn't, the second did:
11 > >
12 > > The 1st:
13 > >
14 > > # cd /etc && FOO="$(cat < <(ls -a /etc | grep mtab))" && echo $FOO
15 > > dmtab mtab
16 > >
17 > >
18 > > The 2nd:
19 > >
20 > > # cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO
21 > > -su: $(ls -a /etc | grep mtab): ambiguous redirect
22 > >
23 >
24 > Thanks. There is something funny going on, because the first produces
25 > an error on my system while the second does not. The first form of the
26 > command is what has been in python-updater.
27 >
28 > What version of bash do you have? Just do:
29 >
30 > bash --version
31 >
32 > It has to be a bash issue.
33 >
34 > Frank Peters
35 >
36 >
37
38 # bash --version
39 GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu)
40 Copyright (C) 2007 Free Software Foundation, Inc.

Replies

Subject Author
Re: [gentoo-amd64] Python-updater line 415 error Frank Peters <frank.peters@×××××××.net>