github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/builder/dockerfile/envVarTest (about)

     1  A|hello                    |     hello
     2  A|he'll'o                  |     hello
     3  A|he'llo                   |     hello
     4  A|he\'llo                  |     he'llo
     5  A|he\\'llo                 |     he\llo
     6  A|abc\tdef                 |     abctdef
     7  A|"abc\tdef"               |     abc\tdef
     8  A|'abc\tdef'               |     abc\tdef
     9  A|hello\                   |     hello
    10  A|hello\\                  |     hello\
    11  A|"hello                   |     hello
    12  A|"hello\"                 |     hello"
    13  A|"hel'lo"                 |     hel'lo
    14  A|'hello                   |     hello
    15  A|'hello\'                 |     hello\
    16  A|"''"                     |     ''
    17  A|$.                       |     $.
    18  A|$1                       |
    19  A|he$1x                    |     hex
    20  A|he$.x                    |     he$.x
    21  # Next one is different on Windows as $pwd==$PWD
    22  U|he$pwd.                  |     he.
    23  W|he$pwd.                  |     he/home.
    24  A|he$PWD                   |     he/home
    25  A|he\$PWD                  |     he$PWD
    26  A|he\\$PWD                 |     he\/home
    27  A|he\${}                   |     he${}
    28  A|he\${}xx                 |     he${}xx
    29  A|he${}                    |     he
    30  A|he${}xx                  |     hexx
    31  A|he${hi}                  |     he
    32  A|he${hi}xx                |     hexx
    33  A|he${PWD}                 |     he/home
    34  A|he${.}                   |     error
    35  A|he${XXX:-000}xx          |     he000xx
    36  A|he${PWD:-000}xx          |     he/homexx
    37  A|he${XXX:-$PWD}xx         |     he/homexx
    38  A|he${XXX:-${PWD:-yyy}}xx  |     he/homexx
    39  A|he${XXX:-${YYY:-yyy}}xx  |     heyyyxx
    40  A|he${XXX:YYY}             |     error
    41  A|he${XXX:+${PWD}}xx       |     hexx
    42  A|he${PWD:+${XXX}}xx       |     hexx
    43  A|he${PWD:+${SHELL}}xx     |     hebashxx
    44  A|he${XXX:+000}xx          |     hexx
    45  A|he${PWD:+000}xx          |     he000xx
    46  A|'he${XX}'                |     he${XX}
    47  A|"he${PWD}"               |     he/home
    48  A|"he'$PWD'"               |     he'/home'
    49  A|"$PWD"                   |     /home
    50  A|'$PWD'                   |     $PWD
    51  A|'\$PWD'                  |     \$PWD
    52  A|'"hello"'                |     "hello"
    53  A|he\$PWD                  |     he$PWD
    54  A|"he\$PWD"                |     he$PWD
    55  A|'he\$PWD'                |     he\$PWD
    56  A|he${PWD                  |     error
    57  A|he${PWD:=000}xx          |     error
    58  A|he${PWD:+${PWD}:}xx      |     he/home:xx
    59  A|he${XXX:-\$PWD:}xx       |     he$PWD:xx
    60  A|he${XXX:-\${PWD}z}xx     |     he${PWDz}xx
    61  A|안녕하세요                 |     안녕하세요
    62  A|안'녕'하세요               |     안녕하세요
    63  A|안'녕하세요                |     안녕하세요
    64  A|안녕\'하세요               |     안녕'하세요
    65  A|안\\'녕하세요              |     안\녕하세요
    66  A|안녕\t하세요               |     안녕t하세요
    67  A|"안녕\t하세요"             |     안녕\t하세요
    68  A|'안녕\t하세요              |     안녕\t하세요
    69  A|안녕하세요\                |     안녕하세요
    70  A|안녕하세요\\               |     안녕하세요\
    71  A|"안녕하세요                |     안녕하세요
    72  A|"안녕하세요\"              |     안녕하세요"
    73  A|"안녕'하세요"              |     안녕'하세요
    74  A|'안녕하세요                |     안녕하세요
    75  A|'안녕하세요\'              |     안녕하세요\
    76  A|안녕$1x                    |     안녕x
    77  A|안녕$.x                    |     안녕$.x
    78  # Next one is different on Windows as $pwd==$PWD
    79  U|안녕$pwd.                  |     안녕.
    80  W|안녕$pwd.                  |     안녕/home.
    81  A|안녕$PWD                   |     안녕/home
    82  A|안녕\$PWD                  |     안녕$PWD
    83  A|안녕\\$PWD                 |     안녕\/home
    84  A|안녕\${}                   |     안녕${}
    85  A|안녕\${}xx                 |     안녕${}xx
    86  A|안녕${}                    |     안녕
    87  A|안녕${}xx                  |     안녕xx
    88  A|안녕${hi}                  |     안녕
    89  A|안녕${hi}xx                |     안녕xx
    90  A|안녕${PWD}                 |     안녕/home
    91  A|안녕${.}                   |     error
    92  A|안녕${XXX:-000}xx          |     안녕000xx
    93  A|안녕${PWD:-000}xx          |     안녕/homexx
    94  A|안녕${XXX:-$PWD}xx         |     안녕/homexx
    95  A|안녕${XXX:-${PWD:-yyy}}xx  |     안녕/homexx
    96  A|안녕${XXX:-${YYY:-yyy}}xx  |     안녕yyyxx
    97  A|안녕${XXX:YYY}             |     error
    98  A|안녕${XXX:+${PWD}}xx       |     안녕xx
    99  A|안녕${PWD:+${XXX}}xx       |     안녕xx
   100  A|안녕${PWD:+${SHELL}}xx     |     안녕bashxx
   101  A|안녕${XXX:+000}xx          |     안녕xx
   102  A|안녕${PWD:+000}xx          |     안녕000xx
   103  A|'안녕${XX}'                |     안녕${XX}
   104  A|"안녕${PWD}"               |     안녕/home
   105  A|"안녕'$PWD'"               |     안녕'/home'
   106  A|'"안녕"'                   |     "안녕"
   107  A|안녕\$PWD                  |     안녕$PWD
   108  A|"안녕\$PWD"                |     안녕$PWD
   109  A|'안녕\$PWD'                |     안녕\$PWD
   110  A|안녕${PWD                  |     error
   111  A|안녕${PWD:=000}xx          |     error
   112  A|안녕${PWD:+${PWD}:}xx      |     안녕/home:xx
   113  A|안녕${XXX:-\$PWD:}xx       |     안녕$PWD:xx
   114  A|안녕${XXX:-\${PWD}z}xx     |     안녕${PWDz}xx
   115  A|$KOREAN                    |     한국어
   116  A|안녕$KOREAN                |     안녕한국어