Hi Chrisp and Jaben,
As the code logic for command line comments was added in 'RunCommand', when the 
function was called nestedly some problems were caused:

1)      Script a.nsh with content : echo ^#^# > a.txt. Execute the script.

Output: echo is on

Expected result: a.nsh is with content ##.



2)      Script b.nsh with content:  echo %1  > b.txt. Execute b.nsh "^#pattern 
aa"

Output: The content in b.txt is "

Expected Result: The content in b.txt is "#pattern aa"
The attached patch seems fix these issues. Could you help review?

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <[email protected]<mailto:[email protected]>>

Thanks,
Shumin

Attachment: ShellPatch_sign_pound.patch
Description: ShellPatch_sign_pound.patch

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to