From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl74l-0002Ph-I8 for guix-patches@gnu.org; Thu, 02 Aug 2018 02:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl74g-0006LN-KL for guix-patches@gnu.org; Thu, 02 Aug 2018 02:27:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl74g-0006LB-FG for guix-patches@gnu.org; Thu, 02 Aug 2018 02:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fl74g-0004VL-25 for guix-patches@gnu.org; Thu, 02 Aug 2018 02:27:02 -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> Date: Wed, 01 Aug 2018 23:26:20 -0700 In-Reply-To: <87o9m84t2n.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 05 Jan 2018 09:19:00 +0100") Message-ID: <87sh3xcmib.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 Ricardo Wurmus writes: > This is the result in =E2=80=9C/tmp/test-python=E2=80=9D: > > #!/home/rekado/.guix-profile/bin/guile --no-auto-compile > #!#; Guix wrapper > #\-(begin (let ((current (getenv "PYTHONPATH"))) (setenv "PYTHONPATH" (if= current (string-append "/foo/bar:whatever" ":" current) "/foo/bar:whatever= "))) (let ((current (getenv "FOOBAR"))) (setenv "FOOBAR" (if current (strin= g-append current ":" "/to/me") "/to/me")))) > #\-(apply execl "/gnu/store/iyy9w0hcxv4dg9q92d4g023vvz50r5bq-python-3.5.3= /bin/python3.5" (car (command-line)) (command-line)) > #!/gnu/store/iyy9w0hcxv4dg9q92d4g023vvz50r5bq-python-3.5.3/bin/python3.5 > import sys > from lib2to3.main import main > > sys.exit(main("lib2to3.fixes")) I understand that the part beginning with #! and ending with !# are a block comment in scheme, so they will be ignored by Guile, and that "Guix wrapper" shows up after a ;, so it will also be considered a comment by Guile, but I don't understand why the lines following that need to begin with #\-. I also don't understand why Guile doesn't complain about it. Why do the lines begin with #\-? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAltipAwACgkQ3UCaFdgi Rp2ruxAArb+xtJfkF5amVlQQCwGGkwgJOrZWSNL7KSkXISrDWNWQ6+JEIQJWYnj8 SBVArYEGwW9uk1Psw6UxEJ9grAwMpTCPbjTMSuNb5YdVczqVakTsD0zAskqpdGtr m7Ig+SF6t8sqCwfDF9yY1pM+quYlU49kwj/KnEaMakJczM1CvD8CHhV9YA9QvBfe ERCAYzam2xItlUHOWG7lTtpSCv7KCvFxYMEtiVDTKLeW3Gv3EM1vzBtLRmjqIJLS lvH4/MJy9VttiPfx+zm+Dlt6dfXscZj78e5sm9U8PtbfAhHAYmhmSRmTo3Gm4gGr CCgeMhEXaETHVkpDi4A7D5mD/3oj7ar749o8OWN5an2+VlL21k7Yy4+qoatO1Z6v M0l0bwDsrUKCYXB4bI/gdCkccs19gn7Hub/pP6LozXyyIcYkacTvrhO24QHOrQsz AwI1bPlj916jVyXWxAuvg3WGqiuO0XwCi3orxWRGsycMvEkJrrFfsvrvm3Xvni+H sMSu6KmDKirEH+QZCuROWXP2Bz229L9yHebODLRXzeiYtRJsciOglLEIvAg9h2s/ GsVrfkt17J77UDlo+V7bfIlTpzJBrFFe0tONW+Lch+PPCoVymJnjgPNY9lpJCddC a34wwxtNxI/2dJYGKjbHH0HWvyd8M2AWMAPC8d/fqDVj1UTBDEs= =eN44 -----END PGP SIGNATURE----- --=-=-=--