2 # This is a very simple shell script to test how the interpreter parses the parameters.
4 # Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 set Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA ValueOfGuid
10 set Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580 ^#
11 set Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC ^"
12 set Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE
13 alias ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE ShellCTestApp
16 # '^' should escape all special characters (including space)
17 # but has no impact to non-special characters
21 ShellCTestApp ^%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA%
30 # '#' should be processed before %% replacement, and inside '"'
32 ShellCTestApp #%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA%
34 ShellCTestApp %Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580%
37 # '%' should be processed before grouping parameters
39 ShellCTestApp "%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA% 2%Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC%
42 # alias should be processed after %% replacement
44 %Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE%
47 # '"' should be stripped, space inside '"' should be kept,
51 ShellCTestApp "p 1"e"x"""
53 set -d Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA
54 set -d Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580
55 set -d Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC
56 set -d Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE
57 alias -d ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE