[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:32046] Re: play mpeg


>> On Tue, 12 Mar 2002 01:06:04 +0900, Tatsuya Kinoshita <tats@xxxxxxxxxx> said:
:> apt-cache searchでは、正規表現を複数使えばAND検索ができます。また、
:> 大文字小文字は同一視されます。

複数の引数を指定したときはAND検索です。とman pageに書いてますね。
# なんで気付かなかったんだろう

       search search performs a full text search on all available
              package  files  for  the  regex  pattern  given. It
              searchs the package names and the descriptions  for
              an occurance of the string and prints out the pack-
              age name and the short description.  If  --full  is
              given then output identical to show is produced for
              each matched package and if --names-only  is  given
              then the long description is not searched, only the
              package name is.

              Seperate arguments can be used to specified  multi
              ple search patterns that are and'd together.

occurance → occurrence
Seperate → Separate

# aptのソース初めて見てみました。
      if (regcomp(&Patterns[I],CmdL.FileList[I+1],REG_EXTENDED | REG_ICASE | 
                  REG_NOSUB) != 0)