[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Fedora-packaging] Executable example scripts in docs



On Fri, 13 Mar 2009 13:19:30 +0100, Ralf wrote:

> Michael Schwendt wrote:
> > On Fri, 13 Mar 2009 12:50:44 +0100, Ralf wrote:
> > 
> >>  > Such a warning is good, because it can happen that doc files are +x by
> >>  > mistake. Since executable scripts are easier to execute accidentally
> >>  > than non-executable scripts, making them -x is safer.
> >> Only if you have them in $PATH.
> > 
> > Also in current dir
> 
> *nix newbie lesson #1: Do not have '.' in $PATH.

Fix your attitude. Do you still meet people who add '.' to $PATH?

$ touch example.sh
$ ./example.sh
bash: ./example.sh: Permission denied

Also check it out in a graphical file browser compared to +x.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]