[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] 'or' and flexible expression of wget options
From: |
Peng Yu |
Subject: |
[Bug-wget] 'or' and flexible expression of wget options |
Date: |
Sun, 7 Aug 2011 14:35:19 -0500 |
Hi,
It seems that all the options checked in download_child_p() are
AND'ed. In gnu find, options can be and'ed or or'ed much more
flexibly. I looked at wget source, it is not clear to me that flexible
expression can be supported by the current wget cmdline option parsing
framework.
Does anybody know anything about how find does this and if wget can
adapt the techniques in find to support flexible options?
>From man find:
OPERATORS
Listed in order of decreasing precedence:
( expr )
Force precedence. Since parentheses are special to
the shell, you will normally need to quote them. Many of the examples
in this manual page use backslashes for this purpose:
`\(...\)' instead of `(...)'.
! expr True if expr is false. This character will also usually
need protection from interpretation by the shell.
-not expr
Same as ! expr, but not POSIX compliant.
expr1 expr2
Two expressions in a row are taken to be joined with an
implied "and"; expr2 is not evaluated if expr1 is false.
expr1 -a expr2
Same as expr1 expr2.
expr1 -and expr2
Same as expr1 expr2, but not POSIX compliant.
expr1 -o expr2
Or; expr2 is not evaluated if expr1 is true.
expr1 -or expr2
Same as expr1 -o expr2, but not POSIX compliant.
--
Regards,
Peng
- [Bug-wget] 'or' and flexible expression of wget options,
Peng Yu <=