On 08-11-2012 19:41:41 +0100, Fabian Groffen wrote:
> On 08-11-2012 19:18:10 +0100, Jeroen Roovers wrote:
> > For a while I've been thinking that it would be sweet to feed all
> > variants (enabled/disabled) of several USE flags to a script to automate
> > testing with different USE flag combinations.
> >
> > USE=" x y"
> > USE="-x y"
> > USE=" x -y"
> > USE="-x -y"
> >
> > This should be so simple to script but I can't figure out how to do it.
> > Anyone have any ideas or a ready example script?
>
> % echo {x,-x}" "{y,-y}
> x y x -y -x y -x -y
>
> Is that what you need?
Just in case...
$ echo $'\n'"USE=\""{x,-x}" "{y,-y}\"""
USE="x y"
USE="x -y"
USE="-x y"
USE="-x -y"
Fabian
--
Fabian Groffen
Gentoo on a different level
signature.asc
Description: Digital signature
