file 5.17 error

Ludwig macports at metaspasm.org
Fri Mar 7 20:32:45 PST 2014


Is anyone else getting the following error using file -d on seemingly any sort
of text file?  I want to make sure it’s not just me before opening a ticket.

$ file -d .bashrc

[…many tests snipped…]
> 
> 20: > 0 beshort&,=400,"Tower/XP rel 3 object"]
> 8992 == 400 = 0
> mget(type=7, flag=20, offset=0, o=0, nbytes=56, count=0)
> mget/64 @0: # ~/.bashrc: executed by bash(1) for non-login
> shells.\n\n\000\000\000\000\000\000\000\000
> 
> 10: > 0 beshort&,=392,"Tower/XP rel 2 object"]
> 8992 == 392 = 0
> mget(type=17, flag=20, offset=0, o=0, nbytes=56, count=0)
> mget/64 @0:  #~/.bashrc: executed by bash(1) for non-login
> shells.\n\n\000\000\000\000\000\000\000\000
> 
> 163: > 0 regex/s,=\`(\r\n|;|[[]|\377\376),""]
> softmagic -1
> .bashrc: ERROR: line 163: regex error 17, (illegal byte sequence)


It looks like if it hits a match before reaching that test it returns the
result, but so far every human-readable file I’ve tried it on gets to that
point before a hit.



More information about the macports-users mailing list