From: Sean Devlin <spd@toadstyle.org>
To: Jim Porter <jporterbugs@gmail.com>
Cc: 67717@debbugs.gnu.org
Subject: bug#67717: 29.1; Eshell doesn't handle script with "#!/usr/bin/env python3 -ESs"
Date: Sat, 9 Dec 2023 09:24:17 -0500 [thread overview]
Message-ID: <24D0DDA9-4982-47D9-BCA2-58E276FD0736@toadstyle.org> (raw)
In-Reply-To: <6e593dbe-dd2f-6890-4458-80facd5689c7@gmail.com>
> On Dec 8, 2023, at 5:58 PM, Jim Porter <jporterbugs@gmail.com> wrote:
>
> tags 67717 notabug wontfix
> thanks
>
>> On 12/8/2023 1:34 PM, Sean Devlin wrote:
>> From Eshell, I'm trying to invoke a script with the interpreter line:
>> #!/usr/bin/env python3 -ESs
>> Instead of invoking the script, Eshell prints the line:
>> env: python3 -ESs: No such file or directory
>
> This is the correct behavior. The shebang syntax takes at most 2 values: the interpreter, and a single optional argument. Therefore, it's correct to interpret "python3 -ESs" as one argument. However, you can fix this with the "-S" option to env, e.g. "#!/usr/bin/env -S python3 -ESs". (I've confirmed locally that this works properly in Eshell.)
>
> For more information, see here: <https://en.wikipedia.org/wiki/Shebang_(Unix)#Character_interpretation>
I see, thank you.
next prev parent reply other threads:[~2023-12-09 14:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 21:34 bug#67717: 29.1; Eshell doesn't handle script with "#!/usr/bin/env python3 -ESs" Sean Devlin
2023-12-08 22:58 ` Jim Porter
2023-12-09 14:24 ` Sean Devlin [this message]
2023-12-15 1:01 ` Stefan Kangas
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24D0DDA9-4982-47D9-BCA2-58E276FD0736@toadstyle.org \
--to=spd@toadstyle.org \
--cc=67717@debbugs.gnu.org \
--cc=jporterbugs@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).