diff options
author | Werner Koch <wk@gnupg.org> | 2021-11-03 13:50:17 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-11-03 13:50:17 +0100 |
commit | 62755bcd302eca755d52b80b62dc17ae0e683b75 (patch) | |
tree | d3ef18032dc122464149dccc3aa713dbc22f6ab5 /tests | |
parent | b1790f4cc71f14422255bbfba78e91f037e035dd (diff) | |
download | libgpg-error-62755bcd302eca755d52b80b62dc17ae0e683b75.tar.gz |
argparse: Add more system variables.
* src/argparse.c (get_var): Fix "_windows", add "_gpgrtversion" and
"strusageN".
(handle_meta_if): Avoid evaluating inactive branches.
* tests/t-argparse.conf: Add a few other outputs.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/t-argparse.conf | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/t-argparse.conf b/tests/t-argparse.conf index 4e0dc8a..a42d1a1 100644 --- a/tests/t-argparse.conf +++ b/tests/t-argparse.conf @@ -33,6 +33,7 @@ verbose [getenv home $HOME] [if $home =~ home ] [-echo in home condition] +[fi] [expand] [if $foo -n ] cross-ref "$home/project/$user.crf" @@ -48,12 +49,16 @@ verbose street Mühlenstraße [getreg x hkcu\fhghfkhkfh] -[if $_windows -n] -[if $x -n] - trusted-key $x +[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] |