Need Simple Way To Determine If File Is Executable

Sebastian 'lunar' Wiesner basti.wiesner at gmx.net
Thu Dec 21 07:07:48 EST 2006


Fredrik Lundh <fredrik at pythonware.com> schrieb

> Sebastian 'lunar' Wiesner wrote:
> 
>>>>> no, I'm showing that a local file marked as executable overrides a
>>>>> shared one, even if the local file isn't actually an executable.
>  >>>
>>>> Only if you have your system set up badly.  The current directory
>>>> should not be in the search path, and it especially shouldn't have
>>>> higher priority than the regular bin locations.
>  >>
>>> and the award for completely missing the context of this subthread
>>> goes to...
>> 
>> Nevertheless his comment was absolutely correct...
> 
> nope.  a Unix system uses the same flag to determine if a file is
> executable no matter how I've set up my path.

Paul didn't even mention the word "executable". He was referring to
completely different thing: The fact, that whether a local executable
overrides a shared on, is matter of how you set your PATH. The local
file would be executable, whether it is in the PATH or not...

-- 
Freedom is always the freedom of dissenters.
        (Rosa Luxemburg)



More information about the Python-list mailing list