From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Package file indexing Date: Thu, 09 Jan 2020 14:01:00 +0100 Message-ID: <87pnfs9437.fsf@ambrevar.xyz> 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38420) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipXQv-0003i2-JQ for guix-devel@gnu.org; Thu, 09 Jan 2020 08:01:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipXQu-0004ZL-Br for guix-devel@gnu.org; Thu, 09 Jan 2020 08:01:05 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38761) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipXQu-0004Qk-15 for guix-devel@gnu.org; Thu, 09 Jan 2020 08:01:04 -0500 In-Reply-To: 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: zimoun , raingloom Cc: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable zimoun writes: > The syntax '/' should be an option but not the only one, IMHO. We can ima= gine: > > - 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 confu= sion. I disagree. What about matching a path which contains "file:" or "package:"? Then you end up with confusing commands. Using "/" as a filter makes sense because it's the only character that's not allowed in filenames (with \0) and it's safe to assume that it's not useful to match against "/" in description / synopsis. Simon, regarding your examples: > - guix search bin/gmsh gimp > - guix search file:ieee*.sty bin/gmsh latex > - guix search file:bin/gmsh why mixing both the "file:" prefix and the "/"? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4XJAwACgkQm9z0l6S7 zH/Jggf9H3w+IIeANAkCJlFgm16Fax1vqL+MHoqvMbgJVj9Rdqu7nWMwpaSRP1i5 ODOr5P7iBx3ndfK+eTRqRQ9IZDX14QtpTdxGkbwwycaJmjHoVMK8fAGZBgBNDYHf 9M5Ms/2675vhRn2gtbR1UeV8I/LYOA3sBZ4TSK1ZT+F/Qu1otJaNmExR6C+xGVmB IYLR9Tqd4RK+qg5QEsklE+1jD1avjzzRcUo0Qi//AK6Ssg2F7depnPXNeg6O9IsQ 4rU5pg2eazr1IKMmBNssdXv9e5Dizjhonc5dIoEEThRsXOwOnYn6VHPMFCj8sWsc oIPWte0AiCo/uwPDEO3TjV0abJEr+Q== =0KBC -----END PGP SIGNATURE----- --=-=-=--