From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Package file indexing Date: Mon, 6 Jan 2020 17:56:03 +0100 Message-ID: References: <20190314204941.GA21065@jasmine.lan> <87mulx9kuv.fsf@nckx> <87zhpx846u.fsf@ambrevar.xyz> <87bm21y2s2.fsf_-_@gnu.org> <87imw7cpe7.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> <87pnqdhkpf.fsf@gnu.org> <87imlt3hr2.fsf@ambrevar.xyz> <462f35f7596f7318d2b34cc300a7e27a69d2072c.camel@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34132) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioVfs-0008Dq-Eo for guix-devel@gnu.org; Mon, 06 Jan 2020 11:56:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioVfr-0006MG-9y for guix-devel@gnu.org; Mon, 06 Jan 2020 11:56:16 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:42777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioVfr-0006Le-54 for guix-devel@gnu.org; Mon, 06 Jan 2020 11:56:15 -0500 Received: by mail-qt1-x835.google.com with SMTP id j5so42940778qtq.9 for ; Mon, 06 Jan 2020 08:56:15 -0800 (PST) In-Reply-To: <462f35f7596f7318d2b34cc300a7e27a69d2072c.camel@riseup.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: raingloom Cc: Guix-devel Dear, On Fri, 3 Jan 2020 at 17:01, raingloom wrote: > On Thu, 2020-01-02 at 23:50 +0100, zimoun wrote: > > 2. because it allows (in the near future) mixed research: "guix > > search bin/hg python" applying the "python" filter only to the > > packages returned by "bin/hg". And "guix search python bin/hg" search > > the binary file "hg" only to the packages matching "python. > What about files in root (so, ones with no slashes in their path, at > least in your syntax) and files you don't know the full path of, only > their basename? I agree. This second bullet was about composing the "regular package" search and the "file" search; not really about the syntax to switch between the two kind of search. :-) Below the quoting you did, I also described something like "guix search gmsh.h". ;-) The syntax '/' should be an option but not the only one, IMHO. We can imagine: - guix search file:gmsh.h gimp - guix search bin/gmsh gimp - guix search file:ieee*.sty bin/gmsh latex - guix search file:bin/gmsh - guix search package:gimp etc. > To avoid confusion, I think this should be an option/subcommand of > search. Something like -path and -name in find(1). I agree that explicit keywords, e.g., "file:" and "package:", avoid confusion. All the best, simon