diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-26 15:32:01 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-26 15:32:01 +0100 |
commit | 2033efcc95c9bdb73a7db1fb6932f691bf6098ed (patch) | |
tree | 3052ae0166291258e95c73f42e790587f446292b | |
parent | 9173677e873bfea5db87d362ea163db0497f6453 (diff) | |
download | lr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.tar.gz lr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.tar.xz lr-2033efcc95c9bdb73a7db1fb6932f691bf6098ed.zip |
tweak -A filter to prune dot dirs
-rw-r--r-- | lr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c index 646a88d..82832de 100644 --- a/lr.c +++ b/lr.c @@ -1092,7 +1092,7 @@ main(int argc, char *argv[]) switch(c) { case '0': format = zero_format; Qflag++; break; case '1': expr = chain(expr, EXPR_AND, parse_expr("depth == 0 || prune")); break; - case 'A': expr = chain(expr, EXPR_AND, parse_expr("!path ~~ \"*/.*\" && !path == \".\"")); break; + case 'A': expr = chain(expr, EXPR_AND, parse_expr("!(path ~~ \"*/.*\" && prune) && !path == \".\"")); break; case 'D': Dflag++; break; case 'F': format = type_format; break; case 'H': Hflag++; break; |