The recent change in directory naming from j903 to j9.4 introduces an
interesting issue for shell scripts on unix-like systems.

In J shell scripts, this works:

#!/home/username/j903/bin/jconsole

However, this fails with a spelling error:

#!/home/username/j9.4/bin/jconsole

Or, on OSX, the shebang line is different, but the spelling error remains:

#!/Applications/j9.4/bin/jconsole

That said, there's some other issues here, related to portability. One
of which is that (as a general rule) a home directory is personal
rather than portable. Another is that there's official java jconsole
which does not understand J.

But, also, for a long time now, Debian based distributions have been
distributing j with /usr/bin/ijconsole as a symbolic link to the
current installed location for J. (Here, the 'i' in ijconsole stands
for Iverson.)

So I think that now would  be a good time to adopt that as "documented
standard practice" for j shell scripts.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to