From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Package file indexing Date: Thu, 9 Jan 2020 15:05: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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44856) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipYRo-0000wE-Hj for guix-devel@gnu.org; Thu, 09 Jan 2020 09:06:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipYRn-0008CY-1k for guix-devel@gnu.org; Thu, 09 Jan 2020 09:06:04 -0500 In-Reply-To: <87v9pk94ch.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 Hi again, :-) On Thu, 9 Jan 2020 at 13:55, Pierre Neidhardt wrote: > What I originally suggested is that we could equivalently do: > > guix search "/foo.*bar" python- [...] > > Time to time, I am looking for header C file or latex style but I do > > not know the path. I would like to have something like: > > > > guix search gmsh.h > > or > > guix search ieee*.sty > > That's OK, if you know the basename then "/gmsh.h" will match. > If you only know a substring of the basename, then "/.*gmsh.h" will > match too. My point is just I do not like the key '/' to turn on the file-search and I prefer "file:". As said elsewhere. :-) Otherwise, I am on the same wavelength about you are proposing and it is really cool! > > IMHO, it should be included under "guix package", i.e., > > > > guix package gmsh --list-files > > Why not, but then this does not match the interface we have with "guix > size". Maybe we not not talking about the same thing. What is the purpose of this "list-files" for you? To me, it should return all the files of the package gmsh. For example with Debian, when I install the package gmsh, the package manager adds all these files [1]. [1] https://packages.debian.org/buster/amd64/gmsh/filelist Nothing similar exists in Guix, right? If yes, cool, please tell me. :-) Because I am not aware of such thing, then I use "ls -l" and "which" to locate them, which is not friendly. > Could we also have "guix package gmsh --size"? Would we deprecate "guix > size" then? No. It seems better to keep "guix size", IMHO. > If not, then for the sake of consistency I'd prefer to have "guix list-files". I think it is a bad idea to add another subcommand. Because it is not so common, I guess. Well, could you elaborate on what this "list-files" will do? All the best, simon