It always irked me that apxs -q {arbitraryvariable} throws up. Which ones are valid anyways?
The attached patch would provide a list of the values from apxs -q if no variable name is passed. Feedback? If the list likes, please commit. Bill
--- apxs 2006-07-15 06:25:47.000000000 -0500 +++ apxs.new 2006-12-08 14:38:39.000000000 -0600 @@ -155,7 +155,7 @@ my $rc; ($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+S+eiaAp", @ARGV); &usage if ($rc == 0); -&usage if ($#ARGV == -1 and not $opt_g); +&usage if ($#ARGV == -1 and not $opt_g and not $opt_q); &usage if (not $opt_q and not ($opt_g and $opt_n) and not $opt_i and not $opt_c and not $opt_e); # argument handling @@ -315,13 +315,20 @@ exit(0); } if ($opt_q) { ## ## QUERY INFORMATION ## - my $result = get_vars(@args); - print "$result\n"; + my $result; + if ($#args >= 0) { + $result = get_vars(@args); + print "$result\n"; + } else { + foreach (keys %config_vars) { + print "$_=$config_vars{$_}\n"; + } + } } my $apr_config = get_vars("APR_CONFIG");