Closed
Description
$ bfs -not \( -user operator -or -user smb \) -exec ls -lad {} \; | tail -n1
bfs: warning: bfs -not "(" -user operator -or -user smb ")" -exec ls -lad "{}" ";"
bfs: warning: ~~~~~~~~~
bfs: warning: This expression is always false.
-rw-rw----+ 1 smb smb 22057241 Oct 15 2024 ./Updates/10.21H2.x64/windows10.0-kb5045523-x64_e95ca9f3a548d05671f7be2ed034cf250d60d8ea.cab
Distributing the negation results in the same problem:
$ bfs \( -not -user operator -and -not -user smb \) -exec ls -lad {} \; | tail -n1
bfs: warning: bfs "(" -not -user operator -and -not -user smb ")" -exec ls -lad "{}" ";"
bfs: warning: ~~~~~~~~~
bfs: warning: This expression is always false.
-rw-rw----+ 1 smb smb 819500057 Oct 15 2024 ./Updates/11.22H2.x64/windows11.0-kb5044285-x64_0879eebfa8d66123e40f2c2614bcfd16d053abe3.msu
I acknowledge that bfs' warning is self-consistent with the results, so it might be intended behavior rather than a bug, but I don't see why.
Equivalent command line works with GNU find as intuitively expected.
Metadata
Metadata
Assignees
Labels
No labels