samba-bugs@samba.org
2005-Feb-25 17:21 UTC
[Bug 2240] Add last-match/short-circuit processing of include/exclude
https://bugzilla.samba.org/show_bug.cgi?id=2240 ------- Additional Comments From wayned@samba.org 2005-02-25 10:05 ------- I considered the short-circuit operators (-! and +!) for filter commands, but I am not convinced of their utility. Do you have an example of a real-life situation that they improve? Note also that the suggested syntax for the new operators is now being used to specify a rule that triggers when the pattern fails to match (such as "-! */") so if this idiom is needed it would need a new syntax (perhaps "-*" and "+*"). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2005-Feb-25 17:21 UTC
[Bug 2240] Add last-match/short-circuit processing of include/exclude
https://bugzilla.samba.org/show_bug.cgi?id=2240 ------- Additional Comments From wayned@samba.org 2005-02-25 10:00 ------- Created an attachment (id=985) --> (https://bugzilla.samba.org/attachment.cgi?id=985&action=view) Add optional last-match parsing Here's a simple patch that allows any filter/include/exclude file to be parsed in a last-match-wins format. The file must contain this line (on its own): [last-match] This causes all the following rules to be reversed as they are read in, making them behave in a last-match manner. This shouldn't cause a problem in an include/exclude file because the above string would have been a bogus character range that nobody should have specified. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Reasonably Related Threads
- [Bug 2240] New: Add last-match/short-circuit processing of include/exclude
- [Bug 2240] Add last-match/short-circuit processing of include/exclude
- [LLVMdev] Disable Short-Circuit Evaluation?
- [LLVMdev] [cfe-dev] Disable Short-Circuit Evaluation?
- [LLVMdev] [cfe-dev] Disable Short-Circuit Evaluation?