[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting weird output out of 'echo' w/args
From: |
Davide Brini |
Subject: |
Re: getting weird output out of 'echo' w/args |
Date: |
Thu, 30 May 2013 10:49:57 +0200 |
On Thu, 30 May 2013 08:53:48 +0300, Pierre Gaston <pierre.gaston@gmail.com>
wrote:
> Missing quotes around [ ] can be nasty eg
>
> #!/bin/bash
> shopt -s nullglob # sounds a good idea!
> .....
> .....
> i=0
> while read a[i++]; do
> echo "${a[i]}" # why oh why nothing is printed!
> done <<< "hello"
It seems to me this has nothing to do with missing quotes around [ ], or I
don't get what you mean.
--
D.
- getting weird output out of 'echo' w/args, Linda Walsh, 2013/05/29
- Re: getting weird output out of 'echo' w/args, Chet Ramey, 2013/05/29
- Re: getting weird output out of 'echo' w/args, Linda Walsh, 2013/05/29
- Re: getting weird output out of 'echo' w/args, Pierre Gaston, 2013/05/30
- Re: getting weird output out of 'echo' w/args,
Davide Brini <=
- Re: getting weird output out of 'echo' w/args, Chris Down, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Davide Brini, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Chris Down, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Davide Brini, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Pierre Gaston, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Linda Walsh, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Chris Down, 2013/05/30
- Re: getting weird output out of 'echo' w/args, Linda Walsh, 2013/05/30