diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-07-18 17:50:20 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-25 11:05:42 +0800 |
commit | 57b143d234f473e590fdad32ce0003f326fe329a (patch) | |
tree | e45384db283a9c5daf8523a9eed2703c9b354df9 /ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni | |
parent | 580a861a6bc2a68e46ce719ce7689746ab9cae95 (diff) | |
download | edk2-platforms-57b143d234f473e590fdad32ce0003f326fe329a.tar.xz |
ShellPkg: Fix echo to support displaying special characters
Run 'echo -t' without the patch will get the result:
echo: Unknown flag - '-t'
The expected result is to display '-t' literally.
This patch adds special handle for 'echo'. 'echo' will not use the
general parameter parsing library.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
(cherry picked from commit 95fc5a877502a6e6324300eed0136243d359fa96)
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni b/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni index fc9c5d447c..eeb870a395 100644 --- a/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni +++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni @@ -1,7 +1,7 @@ // /**
//
// (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>
-// Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved. <BR>
+// Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved. <BR>
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
@@ -55,6 +55,7 @@ #string STR_ECHO_ON #language en-US "Echo is on.\r\n"
#string STR_ECHO_OFF #language en-US "Echo is off.\r\n"
+#string STR_ECHO_INVALID_PARAM #language en-US "%H%s%N: Invalid - too many parameters after '%s'\r\n"
#string STR_PAUSE_PROMPT #language en-US "Enter 'q' to quit, any other key to continue:\r\n"
|