PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] Operators with Options
Date: Sunday, 06 Sep 2020, 16:26:28


    > Message Posted By: Unknown
    >
    > What would the expected behavior be if an operator was included between
    > options in the expression?
    >
    > ie % fiend -name FOO -o -depth -newer BAR
    >
    > In this example, would "-o" treat "-depth" as its right operand with
    > "newer" defaulting to "-a", or would it skip over and treat "-newer" as
    > the right operand?

Options are global, so the command above is equivalent
to

  % fiend -depth -name FOO -o -newer BAR

but does not incur the warning about -depth following a
non-option.

Aside: The easiest way to see what /bin/find or Hwk1/fiend
would do is to run them.

--Stan-
PREV INDEX NEXT