From: Chris Marusich <cmmarusich@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Hartmut Goebel <h.goebel@crazy-compilers.com>, 29951@debbugs.gnu.org
Subject: [bug#29951] [PATCH] WIP guix: Add wrap-script.
Date: Wed, 01 Aug 2018 23:26:20 -0700 [thread overview]
Message-ID: <87sh3xcmib.fsf@gmail.com> (raw)
In-Reply-To: <87o9m84t2n.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 05 Jan 2018 09:19:00 +0100")
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
Ricardo Wurmus <rekado@elephly.net> writes:
> This is the result in “/tmp/test-python”:
>
> #!/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 (string-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 #\-?
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-08-02 6:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 20:44 [bug#29951] [PATCH] WIP guix: Add wrap-script Ricardo Wurmus
2018-01-03 13:59 ` Hartmut Goebel
2018-01-05 8:19 ` Ricardo Wurmus
2018-01-05 10:06 ` Hartmut Goebel
2018-08-02 6:26 ` Chris Marusich [this message]
2018-08-02 7:23 ` Ricardo Wurmus
2018-08-02 8:37 ` Chris Marusich
2018-01-12 22:52 ` Ludovic Courtès
2018-08-02 8:18 ` Jelle Licht
2018-08-02 8:37 ` Ricardo Wurmus
2018-08-02 9:22 ` Nils Gillmann
2019-02-06 23:10 ` [bug#29951] [PATCH]: " Ricardo Wurmus
2019-02-08 10:10 ` bug#29951: " Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sh3xcmib.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=29951@debbugs.gnu.org \
--cc=h.goebel@crazy-compilers.com \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.