This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HEADSUP maintainers: Packages install scripts without execute permissions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]