Why do these two commands return different result?
>find /common -name lost+found -prune -or -name fileToFind
>find /common -name lost+found -prune -or -name fileToFind -print
man page reads (man find)
If the expression contains no actions other than -prune, -print is performed on all files for which the expression is true.
Debian wheezy, AMD64 current. Version of find is 4.4.2. The directory /common is nfs mounted. Filesystem is EXT3.
My guess, (obviously incorrect) was that "-print" would be performed regardless of its existance at the end of command line. (commands after -or)
Thank you for your reading my post. Have a nice day!