Re: [Qemu-devel] Re: Storing command line options in images

Segher Boessenkool
2007-08-15T21:26:47Z

>>> When I read Avi's TODO, I basically thought about getting rid of the
>>> long command lines I had to store in scripts. I wanted to write that
>>> command line once, and then forgetting about it, until I needed to
>>> change it.
>>
>> Instead of inventing great and wonderfully complicated schemes, the
>> most sensible way I can think of is to recycle a feature which is now
>> implemented in the GNU toolchain, and apparently stems from Windows:
>>
>> qemu @qemu.cfg
>>
>> where qemu.cfg is a file which contains the command line arguments.
>> (This is also low-maintenance, as it allows to re-use the existing
>
> IMHO, it should be implemented at the shell level, not qemu level,
> like "*" is.

The shell _does_ implement it: qemu `cat qemu.cfg` :-)

If you want "@" anyway, you can pick up the code from libiberty
(or just build with libiberty).

Segher