[Fedora-packaging] Executable example scripts in docs
Michael Schwendt
mschwendt at gmail.com
Fri Mar 13 12:32:16 UTC 2009
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.
More information about the Fedora-packaging
mailing list