If we do this then J should exit automatically after executing the last line of the script. This is the normal behavior of shell scripts.
On Sat, 11 Mar 2023 at 9:56 PM Henry Rich <henryhr...@gmail.com> wrote: > 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm