PREV INDEX NEXT

Author: Unknown
Subject: -depth and -maxdepth
Date: Saturday, 12 Sep 2020, 18:01:38

The spec says "options (-depth and -maxdepth), which affect the overall traversal (rather than the evaluation of EXPRESSION)". However, running staff solution seems to suggest that -depth and -maxdepth do affect the evaluation of EXPRESSION. For example, running "/c/cs323/Hwk1/fiend -depth -o -maxdepth 1 -exec echo file \;" doesn't execute the "echo..." command, presumably since -depth already returns true, whereas running "/c/cs323/Hwk1/fiend -exec echo file \; -o -maxdepth 1" does execute "echo...". So to clarify, should we take into account the "true" returned by "-depth" and "-maxdepth" while evaluating an expression?
PREV INDEX NEXT