all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andrew L. Moore" <slewsys@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 2ec8f28: Introduce defcustom 'executable-prefix-env'
Date: Mon, 24 Jul 2017 14:57:11 -0400	[thread overview]
Message-ID: <ED1B44F2-77E3-4D54-883F-39DBFEE4EA33@gmail.com> (raw)
In-Reply-To: <3rmv7tyemc.fsf@fencepost.gnu.org>


> On Jul 24, 2017, at 12:38 PM, Glenn Morris <rgm@gnu.org> wrote:
> 
> 
> PS personally I don't see what was wrong with
> 
> (setq executable-prefix "#!/usr/bin/env ")'
> 
> http://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00170.html

Glenn,
If you're referring to the patch in it's original form, yes it’s more general,
but I agree with Eli that it’s pretty opaque.

Regarding “deprecation" of the variable `executable-prefix', there’s an argument
for not removing it:  the path of env (i.e., “/usr/bin/env”) is not universal.  On those
systems, the variable `executable-prefix’ would be a fallback.  And indeed, the
updated patch is written so that if the variable `executable-prefix’ is anything other
than “#!” or “#!/usr/bin/env”,  then it takes precedences over the value of
`executable-prefix-env’.

Okay, that explanation may be approaching opaque too, but if so, then let it be
another argument for simplicity over generality :)
-AM

> mentions safety concerns, but you always could, and still can, set it to
> "#!/bin/rm " if you are so inclined. It's not even marked risky. But I
> guess that would be pointless, since if someone could add a nasty
> file-local setting, they could just directly add the #! line as well;
> don't run scripts untrusted people can edit.




      parent reply	other threads:[~2017-07-24 18:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170722073452.31002.6998@vcs0.savannah.gnu.org>
     [not found] ` <20170722073453.C375420329@vcs0.savannah.gnu.org>
2017-07-24 15:58   ` master 2ec8f28: Introduce defcustom 'executable-prefix-env' Glenn Morris
2017-07-24 16:24     ` Eli Zaretskii
2017-07-26 16:47       ` Glenn Morris
2017-07-26 18:55         ` Eli Zaretskii
2017-07-24 16:38     ` Glenn Morris
2017-07-24 16:57       ` Eli Zaretskii
2017-07-24 18:57       ` Andrew L. Moore [this message]

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=ED1B44F2-77E3-4D54-883F-39DBFEE4EA33@gmail.com \
    --to=slewsys@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.