What we have agreed to do is to treat a #! line as a comment ONLY when
#! are the first 2 characters of a file loaded by 0!:n (which is used by
the load command).
Henry Rich
On 3/10/2023 7:29 PM, Raul Miller wrote:
Byte order mark is another can of worms, as is wide encoding.
But, yes, currently, shebang handling on the J side relies on
undefined verb parsing.
If we handle shebang lines, a question becomes: how much handling
should be done?
(For example, does #! become a comment prefix? In many interpreted
languages, # marks the beginning of a comment which ends at line end.)
(Also, if the J interpreter cannot find itself at the shebang path
(delimited by a terminating space), should it pass control to that
interpreter? This is how perl handles shebang lines...)
Etc.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm