reopen 691453 ! thanks
On Thu, 25 Oct 2012 22:38:45 +0200 David Kalnischkies <[email protected]> wrote: > True. And that is intentional as combining two separate searches > is a logical OR and not an AND as the combined list includes packages > which match "foo" but not "bar". > E.g. libart-2.0-2 is not included as it matches "foo(tprint)", but > not "bar". If you want OR you can use the usual regex syntax for that. Sorry, look again: "liBARt-2.0-2" matches "bar". Another way to look at it is to compare the line counts of unique matches: % apt-cache search foo bar | wc -l 21 # simulate 'AND' with "sort | uniq -d": % { apt-cache search foo ; apt-cache search bar ; } | sort | uniq -d | wc -l 23 # simulate 'OR' # { apt-cache search foo ; apt-cache search bar ; } | sort -u | wc -l 791 (BTW, logic aside, thanks for the _cordial_ corrective feedback.) HTH... -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

