Re: Troubles in a multiple choice

Stefan Fiedler <[email protected]> Fri, 17 Nov 2006 21:29:08 +0100
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
On Friday 17 November 2006 19:59, Luca wrote:
> Hi Stefan!
>
> I'm trying various things like the example you gave me in bash before
> adding to the configuration files; but this one for the supported
> languages is giving me various problems; in bash
>  "grep "$1/" SUPPORTED | while read x ; do echo "$x $x" ; done" outputs
> nothing; I'm trying from this afternoon commands like this with the
> "while read do echo" but until now it output nothing on the console.
>
> Luca

read treats backslash characters specially by default. Use e.g.:
	grep -A9999 "SUPPORTED-LOCALES"  SUPPORTED | while read -r x y ; do echo "$x 
$x" ; done
or remove the backslashes from SUPPORTED.

Greets,
	Stefan Fiedler