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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Jun 2009 15:40:20 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: HEADSUP maintainers: Packages install scripts without execute permissions
Message-ID: <20090622134020.GS5039@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <4A3F8955.3080407@gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Jun 22 14:38, Dave Korn wrote:
> Corinna Vinschen wrote:
> > Hi,
> > 
> > 
> > Here's the problem:  If you exec shell scripts, they should only be run
> > if the user trying to run the script has execute permissions on the
> > script.  
> 
>   Shell scripts don't _have_ to be executable, only if you want to launch one
> as if it were a command, rather than sourcing it.

Oh well, I really thought that would go without saying.  Yes, sure,
you're right.  That's at least the case for scripts in /bin or /usr/bin
and that's not invalidated by your below objection.

>   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 (**) (***).


Corinna

(*) http://cygwin.com/ml/cygwin-developers/2009-05/msg00045.html
(**) http://cygwin.com/ml/cygwin-developers/2009-05/msg00047.html
(***) http://cygwin.com/ml/cygwin-developers/2009-05/msg00050.html

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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