]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/Shell.c
ShellPkg: Manually parse parameters
authorBrendan Jackman <Brendan.Jackman@arm.com>
Tue, 11 Feb 2014 22:39:49 +0000 (22:39 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Feb 2014 22:39:49 +0000 (22:39 +0000)
commit23385d63195945990aa1eb18c8659e2bf882aa59
treed59855f4963c5894f15a0049ee1d5a844ae623f5
parent1eb5cf94a10d14a291e4ba706892e54b03106f33
ShellPkg: Manually parse parameters

We can't use ShellCommandLineParse as it would error out when the shell was
called with args like "cp -r foo bar", because "-r" is not a recognised shell
option

A different way to avoid some of this manual parsing would be to prepend '^' to
each argument, but that would still require the degree of parsing necessary to work
out which words are part of the command and which are shell options.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15220 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/Shell.c