Commit 7fda0be0 authored by Leah Neukirchen's avatar Leah Neukirchen

fix -1 and -A

parent edf84d21
......@@ -2171,8 +2171,8 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "01ABC:DFGHLQST:UXde:f:lho:st:x")) != -1)
switch (c) {
case '0': format = zero_format; input_delim = 0; Qflag = 0; break;
case '1': expr = chain(parse_expr("depth == 0 || prune"), EXPR_AND, expr); break;
case 'A': expr = chain(expr, EXPR_AND, parse_expr("!(path ~~ \"*/.*\" && prune) && path != \".\"")); 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 'B': Bflag++; Dflag = 0; Uflag = 0; need_stat++; break;
case 'C':
if ((unsigned int)Cflag <
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment