]>
Commit | Line | Data |
---|---|---|
7534ae58 RN |
1 | #/** @file\r |
2 | # This is a very simple shell script to test how the interpreter parses the parameters.\r | |
3 | #\r | |
4 | # Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | # This program and the accompanying materials\r | |
6 | # are licensed and made available under the terms and conditions of the BSD License\r | |
7 | # which accompanies this distribution. The full text of the license may be found at\r | |
8 | # http://opensource.org/licenses/bsd-license.php\r | |
9 | #\r | |
10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | #\r | |
13 | #**/\r | |
14 | echo -on\r | |
15 | set Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA ValueOfGuid\r | |
16 | set Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580 ^#\r | |
17 | set Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC ^"\r | |
18 | set Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE\r | |
19 | alias ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE ShellCTestApp\r | |
20 | \r | |
21 | #\r | |
22 | # '^' should escape all special characters (including space)\r | |
23 | # but has no impact to non-special characters\r | |
24 | #\r | |
25 | ShellCTestApp ^^\r | |
26 | ShellCTestApp ^#\r | |
27 | ShellCTestApp ^%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA%\r | |
28 | ShellCTestApp ^"\r | |
29 | ShellCTestApp ^ 1\r | |
30 | ShellCTestApp ^ \r | |
31 | ShellCTestApp ^1\r | |
32 | ShellCTestApp ^^^"\r | |
33 | ShellCTestApp ^^^\r | |
34 | \r | |
35 | #\r | |
36 | # '#' should be processed before %% replacement, and inside '"'\r | |
37 | #\r | |
38 | ShellCTestApp #%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA%\r | |
39 | #ShellCTestApp "#"\r | |
40 | ShellCTestApp %Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580%\r | |
41 | \r | |
42 | #\r | |
43 | # '%' should be processed before grouping parameters\r | |
44 | #\r | |
45 | ShellCTestApp "%Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA% 2%Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC%\r | |
46 | \r | |
47 | #\r | |
48 | # alias should be processed after %% replacement\r | |
49 | #\r | |
50 | %Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE%\r | |
51 | \r | |
52 | #\r | |
53 | # '"' should be stripped, space inside '"' should be kept, \r | |
54 | #\r | |
55 | ShellCTestApp "p 1"\r | |
56 | ShellCTestApp "p"1\r | |
57 | ShellCTestApp "p 1"e"x"""\r | |
58 | \r | |
59 | set -d Var_EFCF356F_228C_47C2_AD0C_3B5DAC9A8CFA\r | |
60 | set -d Sharp_E8528E46_A008_4221_8DE0_D5AB42A9C580\r | |
61 | set -d Quote_E95DEE8B_E3AA_4155_9ED5_6916394104FC\r | |
62 | set -d Var_ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE\r | |
63 | alias -d ShellCTestApp_EE6E8BC6_71A6_44A5_BED3_D8F901105CDE\r | |
64 | echo -off |