This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Make executable scripts executable


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.

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