Re: [Jgeneral] Problem with general/misc/prompt in loaded scripts

2023-08-15 Thread chris burke
This is an old problem. See
https://www.jsoftware.com/pipermail/general/2001-September/007603.html.

On Tue, Aug 15, 2023 at 7:54 AM Raul Miller  wrote:
>
> That's what I get when I run the code line-by-line.
>
> But when I load the script, I get this behavior:
>
> test:123
> |spelling error (invalid inflection)
> |   test:123
> |   ^
>
> Note that I'm on a windows machine here. Linux may behave differently.
> I should have specified my use of windows (windows 11) in my initial
> post.
>
> Thanks,
>
> --
> Raul
>
> On Tue, Aug 15, 2023 at 10:48 AM chris burke  wrote:
> >
> > Did you make an entry after the prompt? On my machine, after entering 123:
> >
> >abc=: prompt'test'
> > test123
> >
> >abc
> > 123
> >
> > On Tue, Aug 15, 2023 at 7:38 AM Raul Miller  wrote:
> > >
> > > This script fails when loaded in jqt (tested in j9.4 and the current j9.5 
> > > beta):
> > >
> > > require'general/misc/prompt'
> > > abc=: prompt'test:'
> > > echo abc
> > >
> > > In a sense it fails silently. But it's a rather noisey form of silence.
> > >
> > > --
> > > Raul
> > > --
> > > 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
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] Problem with general/misc/prompt in loaded scripts

2023-08-15 Thread Raul Miller
That's what I get when I run the code line-by-line.

But when I load the script, I get this behavior:

test:123
|spelling error (invalid inflection)
|   test:123
|   ^

Note that I'm on a windows machine here. Linux may behave differently.
I should have specified my use of windows (windows 11) in my initial
post.

Thanks,

-- 
Raul

On Tue, Aug 15, 2023 at 10:48 AM chris burke  wrote:
>
> Did you make an entry after the prompt? On my machine, after entering 123:
>
>abc=: prompt'test'
> test123
>
>abc
> 123
>
> On Tue, Aug 15, 2023 at 7:38 AM Raul Miller  wrote:
> >
> > This script fails when loaded in jqt (tested in j9.4 and the current j9.5 
> > beta):
> >
> > require'general/misc/prompt'
> > abc=: prompt'test:'
> > echo abc
> >
> > In a sense it fails silently. But it's a rather noisey form of silence.
> >
> > --
> > Raul
> > --
> > 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


Re: [Jgeneral] Problem with general/misc/prompt in loaded scripts

2023-08-15 Thread chris burke
Did you make an entry after the prompt? On my machine, after entering 123:

   abc=: prompt'test'
test123

   abc
123

On Tue, Aug 15, 2023 at 7:38 AM Raul Miller  wrote:
>
> This script fails when loaded in jqt (tested in j9.4 and the current j9.5 
> beta):
>
> require'general/misc/prompt'
> abc=: prompt'test:'
> echo abc
>
> In a sense it fails silently. But it's a rather noisey form of silence.
>
> --
> Raul
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jgeneral] Problem with general/misc/prompt in loaded scripts

2023-08-15 Thread Raul Miller
This script fails when loaded in jqt (tested in j9.4 and the current j9.5 beta):

require'general/misc/prompt'
abc=: prompt'test:'
echo abc

In a sense it fails silently. But it's a rather noisey form of silence.

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