On Mon, 2009-08-03 at 02:16 -0400, Frank Peters wrote: > On Mon, 03 Aug 2009 01:07:43 -0500 > Lance Lassetter <lancelasset...@gmail.com> wrote: > > > On Mon, 2009-08-03 at 01:59 -0400, Frank Peters wrote: > > > cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO > > > > Frank, > > > > The 1st didn't, the second did: > > > > The 1st: > > > > # cd /etc && FOO="$(cat < <(ls -a /etc | grep mtab))" && echo $FOO > > dmtab mtab > > > > > > The 2nd: > > > > # cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO > > -su: $(ls -a /etc | grep mtab): ambiguous redirect > > > > Thanks. There is something funny going on, because the first produces > an error on my system while the second does not. The first form of the > command is what has been in python-updater. > > What version of bash do you have? Just do: > > bash --version > > It has to be a bash issue. > > Frank Peters > >
# bash --version GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc.