blob: a42d1a18a8bd63ceb3bcc59c09ace1bd544fc89d (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# User test config file for t-argparse
[-echo begin of user config (user=${user})]
[+verbose]
# Options applied to all user's config files
echo
# The next should be flagged as unexpected meta command.
#<off>[ignore]
my-option 4711
not-my-option
verbose
[let user ${_}Montgomery Scott$_$_ ]
[-echo The name of the user is: "$user". ]
[getenv foo FOO]
[if $_verbose]
[-echo foo=$foo]
[fi]
[getenv home HOME]
[getenv path PATH ]
[if $_verbose]
[-echo home=$home path=$path]
[fi]
[-info checking user]
[if $user = Scottie's engines ]
[fi]
[-info checking substring check]
[getenv home $HOME]
[if $home =~ home ]
[-echo in home condition]
[fi]
[expand]
[if $foo -n ]
cross-ref "$home/project/$user.crf"
[-echo FOO is set]
[if $home -n]
[-echo home is set]
[else]
[-echo home is not set]
[fi]
[else]
[-echo FOO is not set]
[fi]
street Mühlenstraße
[getreg x hkcu\fhghfkhkfh]
[if $_windows]
[if $x]
street $x
[fi]
[fi]
# Print some infos from our strusage function
[-echo strusage(9)=${_strusage9}]
[-echo strusage(11)=${_strusage11}]
[-echo strusage(13)=${_strusage13}]
[-echo pgm="$_pgm" ver="$_version"]
[if $_version -v3gt 6.42.16]
[-echo is > 6.42.16]
[fi]
[if $_version -v3ge 6.42.17]
[-echo is >= 6.42.17]
[fi]
[if $_version -v3lt 6.42.17]
[else]
[-echo is not < 6.42.17]
[fi]
[-echo end of user config]
|