> Trying the example script in help/user/hashbang.htm and got the following
error:

This is explained in the second paragraph of that help page, i.e.

"The #! line will be run as a normal J sentence so it must run without
error or side effect. This is the case with #!/home/fred/j802/bin/jconsole,
but #!/home/fred/j64-802/bin/jconsole will get an error because of the -
character. The workaround is to create a link file that has no characters
that cause problems."



On Tue, Jul 29, 2014 at 7:23 AM, Don Guinn <[email protected]> wrote:

> Trying the example script in help/user/hashbang.htm and got the following
> error:
>
> don@ubuntu:~/j64-802-user/temp$ ./1.ijs
> |domain error: script
> |   #!/home/don/j64-    802/bin/jconsole
> |[-0] /home/don/j64-802-user/temp/./1.ijs
>
> Probably works fine for 32 bit version of J as the minus sign is not in the
> file name.
>
> Another question is how to find the link target in Linux. In windows ARGV
> is set to the link target, where in Linux it is set to the name of the
> link.
>
> In Windows:
>    ARGV
>
> ┌────────────────────────┐
>
> │C:\J\j64-802\bin\jqt.exe│
>
> └────────────────────────┘
>
> In Linux:
>
>   ARGV
>
> ┌───────────────────────┐
>
> │/home/don/Desktop/J8 Qt│
>
> └───────────────────────┘
>
> ("J8 Qt" is the name of my shortcut to start J.)
>
>
> Also, in the properties of a file in Linux one can select the application
> to handle the file with the "Open With" option. Is there a way to add the J
> executables to that list?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to