From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl98T-0002Jv-B4 for guix-patches@gnu.org; Thu, 02 Aug 2018 04:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl98Q-0002gM-77 for guix-patches@gnu.org; Thu, 02 Aug 2018 04:39:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl98Q-0002gI-0m for guix-patches@gnu.org; Thu, 02 Aug 2018 04:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fl98P-0007rH-Or for guix-patches@gnu.org; Thu, 02 Aug 2018 04:39:01 -0400 Subject: [bug#29951] [PATCH] WIP guix: Add wrap-script. Resent-Message-ID: From: Chris Marusich References: <20180102204434.2716-1-rekado@elephly.net> <69141465-bdd7-4855-c5d0-a3750646273b@crazy-compilers.com> <87o9m84t2n.fsf@elephly.net> <87sh3xcmib.fsf@gmail.com> <87600ts04b.fsf@elephly.net> Date: Thu, 02 Aug 2018 01:37:51 -0700 In-Reply-To: <87600ts04b.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 02 Aug 2018 09:23:16 +0200") Message-ID: <87y3dpb1uo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: Hartmut Goebel , 29951@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ricardo, Thank you for taking the time to explain it! Ricardo Wurmus writes: > [...] This line: > > #\-(begin (let =E2=80=A6) =E2=80=A6) > > is really just two Scheme values: a single arbitrary character and the > S-expression that we care about. We only care about the side-effects of > evaluating the S-expression. I understand now. We're reading the hyphen symbol, and not doing anything with it. Got it! > The advantage of this approach is: we don=E2=80=99t have to rename wrapped > scripts any more (=E2=80=9C.foo-real=E2=80=9D), which makes for prettier = usage messages > (=E2=80=9CUsage: foo -v=E2=80=9D instead of =E2=80=9CUsage: .foo-real -v= =E2=80=9D) and avoids problems > when an application checks its own name to determine what actions it > should take. Sounds great! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAltiwt8ACgkQ3UCaFdgi Rp1tRg//evUOIouFt5oLR9joAfp953f/PZv4GovdueN4Hq6BoVFAH52ggSJw9G0O u0g9IKcrtWqiYa5ao1RqROPLqTqca3i1TgBUY0tsc67AammqCg9ntC4Kuku4Lb+4 B9bczuVOiVSJBQuNMejaefC4Nc1skkkPtZFQqN8nkPvfVXzcYK+4ei0vMUb1U8hz zR2TNQNI9zSjoym/psfKjqpKAyDBw7ZhbsIqJ6Zltd1qKd7deGthrE8GKySW+ze1 4G4E4HF8pkQ/owtKIHxwhcC84YjekoaanFK2DC06AGJ1mZBtHBs6vkRZay1ldggV lr/U/+VzeuugB0yLgV33mtL+cjHdUyZmetTHqr7iBxYZDiIcQx70/pAUWUjZqe3I KobgZfz6HKGke6CLiaVqdOvtQjVfDGfmwgmsFcSfMuT11Gzy/XxcMVPpxdzpomw3 QCMKC+Xy9rtnIyqXo9/lPEBOFUFCs2Ant+b/xC35YvK9aHbSTdGgqXu7baWJMxkm cC4J60zp4I6ybT5RBwD/HlF6BMIVCrbUW78fh0mCjJKNNIoeL5XA0Zwtequ3a92r nLhqAZ4PNncqaonu81/iyJKz9a6u+wJBlrFvEa7qv83Xv8/1OZyg0BEi4+D/Opp+ sgxx90H9PAvCk7gANylyRiC9yvcj28BsvwZTZ0hW+D9j2eYWfAs= =lswz -----END PGP SIGNATURE----- --=-=-=--