X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Jun 2009 15:40:20 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: HEADSUP maintainers: Packages install scripts without execute 	permissions
Message-ID: <20090622134020.GS5039@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4A3D1570.5020506@aim.com> <20090622094310.GN5039@calimero.vinschen.de> <20090622131144.GR5039@calimero.vinschen.de> <4A3F8955.3080407@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4A3F8955.3080407@gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

