The intent is that the J front end (jconsole.exe j.exe et. al.) always define PROFILE and ARGV. They should be defined in the example you give and I am surprised that they aren't. I can't look at this further right now and ask that you run your experiment again. Check both jconsole.exe and j.exe. The later setting of PROFILE if not already set shouldn't be there and is a bit of left over history.

----- Original Message ----- From: "Sherlock, Ric" <[EMAIL PROTECTED]>
To: "General forum" <[email protected]>
Sent: Tuesday, June 19, 2007 9:49 PM
Subject: RE: [Jgeneral] Profile.ijs comments


-----Original Message-----
[mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
In the default profile.ijs, one of the first things done is
to set the noun PROFILE_z_ to be the pathname of the default
profile.ijs if it is not already defined. My current thinking
is that if you were using a custom profile (via -jprofile on
the command line) then PROFILE_z_ should be set before the line.

if. notdef 'PROFILE' do. PROFILE_z_=: 1!:45'' end.


Reading back through some forum archives, another possibility occurs to
me.
Bill Lam suggests in
http://www.jsoftware.com/pipermail/programming/2006-December/004527.html
that "ARGV should work with -jprofile, because it is injected by J
executable before
running any script."

If this is true then perhaps PROFILE is also supposed to be "injected by
the J executable"?

However when I run
"c:\program files\j601\j.exe" -jprofile

  18!:4 <'z'
  18!:5 ''
+-+
|z|
+-+
  4!:1 ]0 1 2 3

  $4!:1 ]0 1 2 3
0

Neither ARGV or PROFILE are defined in the z locale.
But perhaps this is as it is meant to be?

----------------------------------------------------------------------
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