[ipxe-devel] [PATCH] Accept '--' as an end-of-options marker in getopt()

Michael Brown mbrown at fensystems.co.uk
Wed Nov 2 00:26:42 UTC 2011

On Tuesday 01 Nov 2011 15:59:18 Marin Hannache wrote:
> I recently tried to print a full line of '-' with echo, which is
> impossible due to option parsing in iPXE : actually, everything
> beginning with a '-' is treated as an option.
> So i wrote a little patch in order to recognize an empty long option
> ("--") as an end-of-options marker, in order to be able to echo such
> lines.
> With this four-line patch, you can now write "echo -- ----" which prints
> "----" as expected.
> I hope this will be useful to someone. :)

Applied, thanks!



More information about the ipxe-devel mailing list