diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-01-12 16:31:40 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-01-12 16:31:40 +0100 |
commit | 0cceea5fa61c77f0c01622454b0814ddba1f2994 (patch) | |
tree | 915ad8a221e9285af9ad6b8b714345a7f731b2a6 | |
parent | 12e97905fd2411a4ec882caf442b5b8479d82010 (diff) | |
download | lr-0cceea5fa61c77f0c01622454b0814ddba1f2994.tar.gz lr-0cceea5fa61c77f0c01622454b0814ddba1f2994.tar.xz lr-0cceea5fa61c77f0c01622454b0814ddba1f2994.zip |
fix -A
Found by Valodim.
-rw-r--r-- | lr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c index e70809a..dd485c2 100644 --- a/lr.c +++ b/lr.c @@ -2482,7 +2482,7 @@ main(int argc, char *argv[]) switch (c) { case '0': format = zero_format; input_delim = 0; Qflag = Pflag = 0; break; case '1': expr = chain(parse_expr("depth > 0 ? prune : print"), EXPR_AND, expr); break; - case 'A': expr = chain(expr, EXPR_AND, parse_expr("name =~ \"^\\.\" && path != \".\" ? prune : print")); break; + case 'A': expr = chain(expr, EXPR_AND, parse_expr("name =~ \"^\\.\" && path != \".\" ? (prune && skip) : print")); break; case 'B': Bflag++; Dflag = 0; Uflag = 0; need_stat++; break; case 'C': if ((unsigned int)Cflag < |