I don't use jqt.cmd so that I can answer if it needs another version. since jqt.cmd set up environment, so that fork_jtask can inherent that enviornment.
I use the windows AIO installer, then there is no jqt.cmd, clicking on jqt.exe launch directly. And I guess the cmdline parameters should agree with the documentation. IMO AIO installer is more suitable for idiotic windows users like myself. ymmv. Сб, 05 апр 2014, Pascal Jasmin писал(а): > Without the change to jqt.cmd (adding %*) jqt doesn't see any ARGV. > > I notice that you cannot launch jqt.exe directly (needs to set path to QT), > but you can call jqt from Jqt > > fork_jtask_ jpath '~bin/jqt.exe filename2load' > > > and this also works: > > fork_jtask_ jpath '~bin/jqt.exe -js a=:2+2' NB. no spaces inside expressions. > > > > My question though, > > could the official distribution ship with a version of the .cmd file that > does allow arguments to be passed? > > > > ----- Original Message ----- > From: bill lam <bbill....@gmail.com> > To: "programm...@jsoftware.com" <programm...@jsoftware.com> > Cc: > Sent: Saturday, April 5, 2014 7:30:23 PM > Subject: Re: [Jprogramming] jqt command line > > It is the responsibility of your script file to handle arguments in ARGV. > > > In linux, it should be something like (untested) > > #!/bin/sh > jqt "$@" > > > 05.04.2014, в 22:48, Pascal Jasmin <godspiral2...@yahoo.ca> написал(а): > > > if I modify the windows jqt.cmd file last line to: > > > > start bin\jqt.exe %* (adding %*) (saving to jqt2.cmd) > > > > > > trying to get consistent behaviour with > > http://jsoftware.com/help/user/cmdline.htm > > > > the line: > > > > jqt2 "D:\j64-801\addons\demos\gldemo\basic1.ijs" > > > > > > will correctly load the file after profile > > > > but the lines: > > > > jqt2 "D:\j64-801\addons\demos\gldemo\basic1.ijs" "a=: i.4" or > > > > jqt2 "D:\j64-801\addons\demos\gldemo\basic1.ijs" "-js a=: i.4" > > > > > > do not execute a, though ARGV is correctly set (in first example, could be > > run with ".) > > > > It does not appear to be possible to pass a -js command line without a > > "profile" (startup script) > > > > The above might hopefully be improved, but is good enough. > > > > Could the J distribution be updated such that jqt.cmd has %* appended to > > the last line? > > What modifications need be made to unix/osx such that Jqt (with default > > installation) can at least load a script at startup? > > ---------------------------------------------------------------------- > > 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 -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm