aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-argparse.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-argparse.conf')
-rw-r--r--tests/t-argparse.conf52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/t-argparse.conf b/tests/t-argparse.conf
index 431ee7d..4e0dc8a 100644
--- a/tests/t-argparse.conf
+++ b/tests/t-argparse.conf
@@ -13,4 +13,56 @@ 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]
+[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 -n]
+[if $x -n]
+ trusted-key $x
+[fi]
+[fi]
+
+[-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]