1 |
On Mon, 03 Aug 2009 01:07:43 -0500 |
2 |
Lance Lassetter <lancelassetter@×××××.com> wrote: |
3 |
|
4 |
> On Mon, 2009-08-03 at 01:59 -0400, Frank Peters wrote: |
5 |
> > cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO |
6 |
> |
7 |
> Frank, |
8 |
> |
9 |
> The 1st didn't, the second did: |
10 |
> |
11 |
> The 1st: |
12 |
> |
13 |
> # cd /etc && FOO="$(cat < <(ls -a /etc | grep mtab))" && echo $FOO |
14 |
> dmtab mtab |
15 |
> |
16 |
> |
17 |
> The 2nd: |
18 |
> |
19 |
> # cd /etc && FOO="$(cat < $(ls -a /etc | grep mtab))" && echo $FOO |
20 |
> -su: $(ls -a /etc | grep mtab): ambiguous redirect |
21 |
> |
22 |
|
23 |
Thanks. There is something funny going on, because the first produces |
24 |
an error on my system while the second does not. The first form of the |
25 |
command is what has been in python-updater. |
26 |
|
27 |
What version of bash do you have? Just do: |
28 |
|
29 |
bash --version |
30 |
|
31 |
It has to be a bash issue. |
32 |
|
33 |
Frank Peters |