delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/22/09:59:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: HEADSUP maintainers: Packages install scripts without execute =?utf-8?b?CXBlcm1pc3Npb25z?=
Date: Mon, 22 Jun 2009 13:58:43 +0000 (UTC)
Lines: 35
Message-ID: <loom.20090622T135114-330@post.gmane.org>
References: <4A3D1570 DOT 5020506 AT aim DOT com> <20090622094310 DOT GN5039 AT calimero DOT vinschen DOT de> <20090622131144 DOT GR5039 AT calimero DOT vinschen DOT de> <4A3F8955 DOT 3080407 AT gmail DOT com> <20090622134020 DOT GS5039 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> >   Why don't we just remove the "-c" and get setup.exe to use the 
simple "bash
> > <filename>" syntax meaning "treat <filename> as a text file, open it and 
pipe
> > it to stdin"?
> 
> I already suggested this on the cygwin-developers ML back in May (*)
> but it was not discussed overly enthusiastic (**) (***).

Indeed - changing things to be 'bash script' instead of the current 'bash -c 
script' would make the use of alternative interpreters harder.  But it does not 
make it impossible; you can always do:

#!/bin/sh
/bin/awk <<\EOF
...
EOF

instead of

#!/bin/awk
...

For that matter, are there any postinstall scripts currently relying on a 
different interpreter?  If not, then I'm in favor of the idea of changing 
setup.exe to be immune to the execute bit on postinstall scripts, at the 
expense of making postinstall scripts locked into bash (at least, as the 
initial interpreter).

-- 
Eric Blake




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019