http://defect.opensolaris.org/bz/show_bug.cgi?id=6163

Vladimir Kotal <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |FIXINPROGRESS

--- Comment #5 from Vladimir Kotal <[email protected]> 2012-07-04 
11:12:14 UTC ---
I just checked what file(1) command does in Solaris and it it pretty strict
about checking whether a file is a shell script.

Basically it does the following check:

if (filebuf[0] == '#' && filebuf[1] == '!' &&
    (from filebuf[2] check spaces and non-spaces are ASCII until first newline)
&&
     make sure there were non-space characters except # and ! until the first
newline)
        return (TRUE);

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to