all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Morgan Smith <Morgan.J.Smith@outlook.com>
Cc: 61094@debbugs.gnu.org,
	Liliana Marie Prikler <liliana.prikler@gmail.com>,
	zimoun <zimon.toutoune@gmail.com>
Subject: [bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'.
Date: Thu, 16 Mar 2023 12:09:11 +0100	[thread overview]
Message-ID: <87zg8deyw8.fsf_-_@gnu.org> (raw)
In-Reply-To: <DM5PR03MB3163BD454A5535BB756DA4D8C5D99@DM5PR03MB3163.namprd03.prod.outlook.com> (Morgan Smith's message of "Thu, 09 Feb 2023 11:07:19 -0500")

Hi,

Morgan Smith <Morgan.J.Smith@outlook.com> skribis:

>>>> +@example
>>>> +#!/usr/bin/env -S guix shell python python-nympy -- python3
>>>> +@end example
>
> Apparently, according to POSIX you're only allowed one argument on the
> '#!' line after the path of the executable.  I haven't confirmed this
> myself but it is in the guile manual, section 4.3.2 "The Meta Switch".
>
> One argument does seem quite limiting though so I wonder if anyone
> actually imposes that limit.

Yes, and ‘env -S’ is used to work around that limitation by splitting
that one argument.  It’s a GNU extension, which is fine in this context.

Ludo’.




  reply	other threads:[~2023-03-16 11:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-27 11:12 [bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell' Simon Tournier
2023-02-03 22:54 ` Liliana Marie Prikler
2023-02-07 11:48   ` zimoun
2023-02-09 16:07     ` Morgan Smith
2023-03-16 11:09       ` Ludovic Courtès [this message]
2023-03-16 11:21 ` bug#61094: " Ludovic Courtès

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=87zg8deyw8.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=61094@debbugs.gnu.org \
    --cc=Morgan.J.Smith@outlook.com \
    --cc=liliana.prikler@gmail.com \
    --cc=zimon.toutoune@gmail.com \
    /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.