Thanks jerome. That mostly reiterates what we have established.

Quoting the path doesn't work for me.

I'm pretty sure I tried using a link file /usr/local/bin/jc that
pointed to /usr/local/lib/j64-701/bin/jconsole and had the same issue
with the hyphen being interpreted as a minus.

The simplest solution is just to rename j64-701 --> j64_701
but, as Eric warns in an earlier post, that doesn't mean the problem
can't potentially recurr

BTW, if you want to comment lines in a J #! script you will probably
have better luck using J comments (NB.) than ##

Ric

On Thu, Dec 23, 2010 at 10:59 AM, jerome fontaine
<[email protected]> wrote:
> fontainejerome
>
> I  have made a link to ~/j32-701/bin/jconsole    Link_jconsole
> copy it in  ~/  or a directory without "reserve" character and run this
>
> jer...@momentus-usb-lmde ~ $ cat ./testhb
> #!/home/jerome/Link_jconsole
> 1!:2&4 'Hello world!', 10 { a.
> NB. exit 0
>
[[snip]]
> tell me if it helps you
>
> 2010/12/22 jerome fontaine <[email protected]>
>
>> De:
>> jerome fontaine <[email protected]>
>>
>> - is use by the system    uname -a
>> + often use by cp file1+file2 file3
>> > < | are also use by pipes
>> and of course / in    /home/user/j701/
>> blank is also very dangerous remove /  home/user/test
>> all the system is deleted if sudo
>> prefer ~/
>>
>> perhaps with cotes, in other contexts it as worked for me
>>   #!"/home/rishe0/j64-701/bin/jconsole"
>>
>> 2010/12/21 Tikkanz <[email protected]>
>>
>> This problem has been recorded before, but I don't think properly resolved.
>>>
>>> ris...@ric-linux:~/proj/getphenotypes$ cat testhb
>>> #!/home/rishe0/j64-701/bin/jconsole
>>> 1!:2&4 'Hello world!', 10 { a.
>>> NB. exit 0
>>>
>>> ris...@ric-linux:~/proj/getphenotypes$ ./testhb
>>> |domain error: script
>>> |   #!/home/rishe0/j64-    701/bin/jconsole
>>> |[-0] /home/rishe0/proj/getphenotypes/./testhb
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>
>>
> ----------------------------------------------------------------------
> 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