-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path16_define_validation.sh
More file actions
39 lines (33 loc) · 942 Bytes
/
Copy path16_define_validation.sh
File metadata and controls
39 lines (33 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@define EMPTY=
@define EMPTY1=''
@define EMPTY2=$''
@define EMPTY3=""
@define _a123=123
@define good__NaMe_=123
@define A=aaa
@define B='bbb bbb'
@define B1='bbb # bbb'
@define B2='bbb ; bbb'
@define C=$'cc\'c cc\'c'
@define C1='cc'\''c cc'\''c'
@define D=a\ b\ \ c
@define D1=a\b\c\d
@define D2=a\'\c\"
@define E="eee eee"
@define F="eee \\ \" eee"
@define K=aaa'bbb'$'cc\'c'a\ b\ \ c"eee"
@define L="$A$B $C$D $E"
@define AC1=aaa # comment
@define AC2=aaa# # comment
@define BC1='bbb bbb' # comment
@define BC2='bbb bbb'# # comment
@define CC1=$'cc\'c cc\'c' #
@define DC1=a\ b\ c #
@define EC1="eee" # comment
@define KC1=aaa'bbb'$'cc\'c'a\ b\ c"eee" # some comment
@define LC1="$A$B$C$D$E" # other comment
@goal default
for x in EMPTY EMPTY1 EMPTY2 EMPTY3 _a123 good__NaMe_ A B B1 B2 C C1 D D1 D2 E F K L AC1 AC2 BC1 BC2 CC1 DC1 EC1 KC1 LC1
do
printf '%-3s=%s\n' "$x" "${!x}"
done