GNU bug report logs - #67717
29.1; Eshell doesn't handle script with "#!/usr/bin/env python3 -ESs"

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Fri, 8 Dec 2023 21:36:01 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 29.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 67717 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Sean Devlin <spd <at> toadstyle.org>, 67717 <at> debbugs.gnu.org
Subject: Re: bug#67717: 29.1; Eshell doesn't handle script with
 "#!/usr/bin/env python3 -ESs"
Date: Fri, 8 Dec 2023 14:58:06 -0800
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>




This bug report was last modified 1 year and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.