From 62755bcd302eca755d52b80b62dc17ae0e683b75 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 3 Nov 2021 13:50:17 +0100 Subject: 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. --- tests/t-argparse.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tests') 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] -- cgit