[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'.
From: |
Ludovic Courtès |
Subject: |
[bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'. |
Date: |
Thu, 16 Mar 2023 12:09:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
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’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'.,
Ludovic Courtès <=