From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Package file indexing Date: Thu, 9 Jan 2020 15:51:49 +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> <87v9pk94ch.fsf@ambrevar.xyz> <8736co90dg.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44761) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipZAK-00023Z-I9 for guix-devel@gnu.org; Thu, 09 Jan 2020 09:52:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipZAJ-0005So-9E for guix-devel@gnu.org; Thu, 09 Jan 2020 09:52:04 -0500 In-Reply-To: <8736co90dg.fsf@ambrevar.xyz> 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-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel On Thu, 9 Jan 2020 at 15:21, Pierre Neidhardt wrote: > Why don't you like it? You are like Haskellers or Perlers asking why ">>=" is not clear. :-) I do not find meaningful "/.*gmsh.h" to search the file named "gmsh.h". I find clearer "file:gmsh.h". Taste of cheese and wine... :-) > I don't like "file:" because: > > - It can make for ambiguous command line to the human read > (e.g. "file:file:"). Bad faith? ;-) I do not know how many user will search for the term "file:". > - It's a new arbitrary syntax which the user must learn to use it, which > means they probably won't. Hum? I am not convinced. > The benefit of "/" is that it works _incidentally_. If you are looking > for "bin/hg", then `guix search bin/hg` will do the right thing. I agree. To be clear, to search the binary 'hg', I find clearer "guix search bin/hg". However, to search any file which you do not the path, I find clearer "guix search file:foo.h". Well, it is enough of bikeshedding, isn't it? :-) > > What is the purpose of this "list-files" for you? > > Listing the files of a package like in the example you gave. Ok. > What I meant is that we already have a subcommand that outputs a > property of the given packages, i.e. "guix size". If I'm not mistaken, > there is no "guix package" flag that displays any property for the given > packages. You are suggesting "guix size emacs --list-files", right? > I am just thinking about keeping consistency across the various > subcommands of Guix. I do not have a strong opinion. :-) To me, the right place is "guix package --list-files" but I am not convinced. :-) Cheers, simon