zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Cc: Justine Tunney <jtunney@gmail.com>
Subject: Re: PATCH: Allow more scripts without #!
Date: Mon, 15 Feb 2021 15:45:19 +0000	[thread overview]
Message-ID: <20210215154519.GA18776@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CANtdasR_vBwBJEKKVtX1pf7-jR3HPdesA5zhcvOvQ-TYu7CLfg@mail.gmail.com>

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.




  reply	other threads:[~2021-02-15 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26  6:35 Justine Tunney
2021-02-15 15:45 ` Daniel Shahaf [this message]
2021-02-15 22:44   ` Bart Schaefer
2021-02-15 23:06     ` Justine Tunney
2021-02-16  9:18     ` Peter Stephenson
2021-02-17 14:53       ` Justine Tunney

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=20210215154519.GA18776@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=jtunney@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).