Documentation on fstab out of date

David Macek david.macek.0@gmail.com
Sat Apr 18 18:55:00 GMT 2015


On 18. 4. 2015 19:21, Steven Penny wrote:
> On Sat, Apr 18, 2015 at 9:47 AM, David Macek wrote:
>> According to has_exec_chars, the sniffing routine also looks for "MZ" (EXE/PE
>> files) and ":\n" (batch files? (can anyone confirm this?)).
> 
> Yeah, I can confirm that it does nothing.

AFAIK `file` doesn't consult this routine in any way. Try this instead:

$ mount "$(cygpath -m "$TMP")" /home -o noacl
$ cd /home
$ touch alpha.sh bravo.sh charlie.bat delta.bat
$ echo '#!/bin/sh' > bravo.sh
$ echo : > delta.bat
$ ls -l
-rw-r--r-- 1 me None        0 Apr 18 20:53 alpha.sh
-rwxr-xr-x 1 me None       10 Apr 18 20:53 bravo.sh
-rw-r--r-- 1 me None        0 Apr 18 20:53 charlie.bat
-rwxr-xr-x 1 me None        2 Apr 18 20:53 delta.bat

-- 
David Macek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4234 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150418/f188a3a5/attachment.p7s>


More information about the Cygwin mailing list