H. Peter Anvin
2013-Feb-25 23:48 UTC
[syslinux] [syslinux:elflink] com32: Add com32_cmdline() which returns argv[ 1..argc-1]
On 02/23/2013 04:30 AM, syslinux-bot for Matt Fleming wrote:> Commit-ID: 41c29c26d70fde563d7c255872bbadad87a39dfa > Gitweb: http://www.syslinux.org/commit/41c29c26d70fde563d7c255872bbadad87a39dfa > Author: Matt Fleming <matt.fleming at intel.com> > AuthorDate: Fri, 22 Feb 2013 15:13:38 +0000 > Committer: Matt Fleming <matt.fleming at intel.com> > CommitDate: Sat, 23 Feb 2013 11:52:17 +0000 > > com32: Add com32_cmdline() which returns argv[1..argc-1] > > cmd.c32 needs an equivalent of __com32.cs_cmdline now that the COMBOOT > code is dead. Introducing com32_cmdline(), which returns a string > consisting of module arguments from argv[1] to argv[argc-1], separated > by spaces. > > Reported-by: Gene Cumm <gene.cumm at gmail.com> > Signed-off-by: Matt Fleming <matt.fleming at intel.com> >I'm thinking it might be a good idea to stash away the unparsed command line from the CLI or menu system, rather than parsing and unparsing it. Not a particularly high priority given the nature of the Linux command line, though. -hpa