Thanks. That settles things.
On Wed, 13 Jan 2021 at 08:49, Devon McCormick <[email protected]> wrote: > > This may be helpful: > https://code.jsoftware.com/wiki/Guides/Startup#Startup_Sequence > > On Tue, Jan 12, 2021 at 9:04 AM Justin Paston-Cooper < > [email protected]> wrote: > > > Looks like ARGV was getting polluted by the script and causing errors > > elsewhere. Thanks. > > > > On Tue, 12 Jan 2021 at 16:31, Hauke Rehr <[email protected]> wrote: > > > > > > I haven’t used it (I rather load'path') but I just tried > > > ijconsole --help which doesn’t work but told me it didn’t > > > find file --help, so obviously providing a script to be > > > loaded from the cl is supposed to work. > > > > > > EDIT: I just did > > > echo "smoutput 2 + 3" >tst.ijs > > > followed by > > > ijconsole tst.ijs > > > and got a 5 so it’s working, at least on my system. > > > > > > Am 12.01.21 um 14:11 schrieb Justin Paston-Cooper: > > > > Okay. I am supposing right now that there is no argument to ijconsole > > > > for that to be disabled. In any case, I would like to avoid hash bang > > > > scripts, and pass the script to ijconsole by name. Is this also not > > > > possible? > > > > > > > > On Tue, 12 Jan 2021 at 16:01, Hauke Rehr <[email protected]> > > wrote: > > > >> > > > >> Usually, languages designed to be as scripts from the command line > > > >> check for the first line to be a shebang line* and ignore it. > > > >> Not so with J, so the line is executed just like all subsequent ones. > > > >> I hope this is what you wanted to know. > > > >> > > > >> * some don’t need to since # is amoung their comment-introducers > > > >> > > > >> Am 12.01.21 um 13:51 schrieb Justin Paston-Cooper: > > > >>> Also, could anyone explain what is meant by the hash bang line being > > > >>> run as a J sentence in > > > >>> https://www.jsoftware.com/help/user/hashbang.htm? I am confused as > > to > > > >>> why that would be run. > > > >> > > > >> -- > > > >> ---------------------- > > > >> mail written using NEO > > > >> neo-layout.org > > > >> > > > >> ---------------------------------------------------------------------- > > > >> For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > > > > -- > > > ---------------------- > > > mail written using NEO > > > neo-layout.org > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > -- > > Devon McCormick, CFA > > Quantitative Consultant > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
