From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Andrew L. Moore" Newsgroups: gmane.emacs.devel Subject: Re: master 2ec8f28: Introduce defcustom 'executable-prefix-env' Date: Mon, 24 Jul 2017 14:57:11 -0400 Message-ID: References: <20170722073452.31002.6998@vcs0.savannah.gnu.org> <20170722073453.C375420329@vcs0.savannah.gnu.org> <3rmv7tyemc.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500923370 6504 195.159.176.226 (24 Jul 2017 19:09:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 19:09:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 24 21:09:26 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZijF-00016I-Md for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 21:09:17 +0200 Original-Received: from localhost ([::1]:56577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZijL-0001GS-Eg for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 15:09:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZiXd-0007pw-J6 for emacs-devel@gnu.org; Mon, 24 Jul 2017 14:57:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZiXc-00050v-Il for emacs-devel@gnu.org; Mon, 24 Jul 2017 14:57:17 -0400 Original-Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:34165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZiXb-00050E-6F; Mon, 24 Jul 2017 14:57:15 -0400 Original-Received: by mail-yw0-x235.google.com with SMTP id i6so21270033ywb.1; Mon, 24 Jul 2017 11:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=blePxdqBGs/C+kbA/W0u+wkoohJ9rfbpAih/RU4XVAY=; b=NQEzYrTmZ505Xr+mf0ZtPziumZUukTzUAA8bY9mUOJqeExOOVW9YZ1uZmT3UG41tk8 ug1adJS3OTAHJlQvEDluzTwig+livHyMPliX5rD0rYdOqSI9agUO2LqRx5MuxmEsKucc kbDIWktav4HSVCetAcHNd5Q7md+vr8SmewASGstwcpzWEBxX5eqDrnD+uMGxxde3qXJI NHvhXWfAz5+wv9GkST3wTOjql7JjnOSVHK48oKz9lpZqxFHwmvqea2TRbtXy1jUgGfMb vdfh21ptEywFS9kAFBHVVH4Atx83+1lYiBqlkdfzejK89NMCIWWcCuOrZ4TNH1UxQ1TW Q3EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=blePxdqBGs/C+kbA/W0u+wkoohJ9rfbpAih/RU4XVAY=; b=tNJNepl2xf0mxhftffpvCsiF342wieVcfL2O9qPglpMrjGS/GhPnvUP8jn/JZYZpIV b/6tDT2/DPiB+sa+9ORbSCMGHo9YShpb3SBVeTwuFmMy/kSZx3XquYJ2NGDqEu75bqgS XmzX1hW/FDn2xSQ1zHPRkoLSr45STbX2pSLXEAmVRVGJFJvR2nB8heHd7QXewbNfFn9G M/v3yjC3vn6tMf9sGH03r7hFqwQhF9pYsBYJ5jw1FDUfTEU5sDKqIN00UZJDVfXfcYUO Ze4PJ/aa97WYXD5kykzJ7NnTF69G9fhO+iv6RIOKnAN4R7QYyDYvzqrT1iTRRm95Q4iF 6wAg== X-Gm-Message-State: AIVw110hzR083a6L6qMbZlcXrZBf8fwB3VTmpGbcIxvw1UKVs7fJO3UX NWCuJ14zmY13Tn6wgzw= X-Received: by 10.37.203.5 with SMTP id b5mr3709884ybg.209.1500922633868; Mon, 24 Jul 2017 11:57:13 -0700 (PDT) Original-Received: from ?IPv6:2605:a601:5010:3600:4c6b:fab7:e846:5ec3? ([2605:a601:5010:3600:4c6b:fab7:e846:5ec3]) by smtp.gmail.com with ESMTPSA id l28sm700268ywa.6.2017.07.24.11.57.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 11:57:13 -0700 (PDT) In-Reply-To: <3rmv7tyemc.fsf@fencepost.gnu.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216997 Archived-At: > On Jul 24, 2017, at 12:38 PM, Glenn Morris wrote: >=20 >=20 > PS personally I don't see what was wrong with >=20 > (setq executable-prefix "#!/usr/bin/env ")' >=20 > 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=E2=80=99s = more general, but I agree with Eli that it=E2=80=99s pretty opaque. Regarding =E2=80=9Cdeprecation" of the variable `executable-prefix', = there=E2=80=99s an argument for not removing it: the path of env (i.e., =E2=80=9C/usr/bin/env=E2=80=9D= ) is not universal. On those systems, the variable `executable-prefix=E2=80=99 would be a fallback. = And indeed, the updated patch is written so that if the variable `executable-prefix=E2=80=99= is anything other than =E2=80=9C#!=E2=80=9D or =E2=80=9C#!/usr/bin/env=E2=80=9D, then it = takes precedences over the value of `executable-prefix-env=E2=80=99. 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.