This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make executable scripts executable
- To: bkorb at sco dot com
- Subject: Re: Make executable scripts executable
- From: Marc Espie <espie at quatramaran dot ens dot fr>
- Date: Thu, 30 Mar 2000 01:06:14 +0200
- Cc: egcs-patches at egcs dot cygnus dot com
- Organization: Ecole Normale Superieure (quatramaran)
In article <38E225C8.EDC44127@sco.com> you write:
>
>Sometimes, when people download the CVS sources,
>they wind un with shell scripts that are not executable.
>This would add "chmod a+x" functionality to the touch
>function. OK to apply?
I don't like this patch for a variety of reasons.
Basically, if scripts are executable, you will miss ${SHELL} in lots of
automated invocations, and that may break things for a few people.
You are not quite sure how the source gets to its destination. There are
lots of processes that may `lose' the executable bit somehow.
Getting it back through the update sounds fine except... the srcdir might
be mounted ro by then (or on a partition with noexec rights or... you never
know). Granted, such scenarii are rather contrieved, but they *happen*.
This makes for somewhat stupid problems that are avoided by basically always
invoking scripts through a shell... which is harder to miss if the scripts
are marked non executable.