Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Allow more scripts without #!



Ping.  This patch hasn't been reviewed.

Justine Tunney wrote on Mon, Jan 25, 2021 at 22:35:18 -0800:
> This change updates the binary safety check so that zsh can run shell
> scripts with concatenated binary content within the first 128 bytes,
> provided a line exists beforehand with a lowercase character or shell
> expansion syntax. Note that this only impacts classic implicit shell
> scripts which don't have a shebang line.
> 
> POSIX rules were updated to loosen binary restrictions and require this
> behavior going forward. A similar change was made last year to the FreeBSD
> Almquist Shell. It's needed by projects such as the Cosmopolitan C Library,
> which creates polyglot executables that run on all operating systems.
> 
> I release this change into the public domain. See unlicense / creative
> commons cc0.






Messages sorted by: Reverse Date, Date, Thread, Author