Nat! bio photo

Nat!

Senior Mull.

Twitter RSS

Github

Hein ? Je ne comprends pas Apple Networking

One of these WTF moments. The directory slicer.py resides in is a (smbfs, nodev, nosuid) share mounted via Apple VPN.

$ [ ! -x ./slicer.py ] && echo "not executable"
not executable
$ ls -l slicer.py
-rwx------@ 1 nat  _lpoperator  7664 14 Feb 13:17 slicer.py
$ man test | grep -A 2 '\-x'
     -x file       True if file exists and is executable.  True indicates only
                   that the execute flag is on.  If file is a directory, true
                   indicates that file can be searched.
$ ./slicer.py 2014-12
Sales date: 30.11.2014 - 27.12.2014

The file can not be tested for executability, but it nevertheless executes (on 10.9.5) ?

Just to sanity check

$ cd /tmp
$ touch xxx
$ chmod 700 xxx
$ [ ! -x xxx ] && echo "not executable" 
$

1 Comment

A photo of ZNeK

From: ZNeK

Try using a "first class citizen" network filesystem instead.Oh, wait..

Post a comment

All comments are held for moderation; basic HTML formatting accepted.

Name:
E-mail: (not published)
Website: