Re: Executable example scripts in docs

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

 



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.

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux