Is this just a server change? Will the wiki syntax be unaffected?
On Tue, Jun 19, 2018 at 9:01 PM, chris burke wrote:
> The wiki will be moved to a new server on Thursday, likely around noon GMT.
> It will have the latest mediawiki version 1.31 and use https. Otherwise the
> look and feel will
Actually, thinking about this - 1!:1 reads the whole file, so it's
stty won't make a difference .- you'd need to use control-D to
terminate everything you send to it interactively.
One approach - not incredibly efficient, but interactive
line-at-a-time input isn't about efficiency, might be:
L
The wiki will be moved to a new server on Thursday, likely around noon GMT.
It will have the latest mediawiki version 1.31 and use https. Otherwise the
look and feel will be unchanged.
A test version (with a yellow J image) is up at https://wiki.jsoftware.com.
You can login and make changes, but t
Ah.. experimenting with this:
stdin'' reads till end of file (hit control-D to finish input)
readln'' as defined in this thread returns immediately, reading an empty string.
At least on *my* system.
I tried running
stty eol ^J before starting J, thinking that would fix it, but it did
not. But I
I think the replies here miss an important part of the question. The #!
script.
#! /usr/bin/j8
stdin''
On Tue, Jun 19, 2018 at 8:21 PM, Don Guinn wrote:
> It appears that the right argument is ignored. Perhaps have it be displayed
> on the same line as the input.
>
> readln 'Name: '
>
> On Tue,
It appears that the right argument is ignored. Perhaps have it be displayed
on the same line as the input.
readln 'Name: '
On Tue, Jun 19, 2018 at 6:18 PM Raul Miller wrote:
>1 -:&(3!:3) 01
> 1
>
> No difference in what's represented, so the only difference is in how
> you type it / the lea
1 -:&(3!:3) 01
1
No difference in what's represented, so the only difference is in how
you type it / the leading zero / ...
Thanks,
--
Raul
On Tue, Jun 19, 2018 at 8:15 PM Devon McCormick wrote:
>
> How does "01" differ from "1" in this context?
>
> "readln" works for me within a session b
How does "01" differ from "1" in this context?
"readln" works for me within a session but I think James wants to do
something like pipe input into a J script. This is not something I've done
but it would be interesting if we can do it.
On Tue, Jun 19, 2018 at 5:10 PM, Henry Rich wrote:
> ? Th
Never mind: it's "1".
Sent from my Verizon, Samsung Galaxy smartphone
Original message From: devonmcc Date:
6/19/18 17:00 (GMT-05:00) To: programm...@jsoftware.com Subject: Re:
[Jprogramming] getline
The "01" following the "!:" is probably supposed to be "0]1".
Sent from
? The 01 is correct as it stands. On Windows I get correct operation:
readln =: [: (1!:01) 1:
readln''
abcdefg
abcdefg
The first line is what I typed, the second is the JE's result
Henry Rich
On 6/19/2018 5:05 PM, james faure wrote:
Either way, it's no good
__
stdin is defined as 1!:1@3:
also perhaps I should have mentionned I want it to work from within a script
From: james faure
Sent: Tuesday, June 19, 2018 11:05:14 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] getline
Either way, it's no good
__
Either way, it's no good
From: Programming on behalf of
devonmcc
Sent: Tuesday, June 19, 2018 11:00:39 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] getline
The "01" following the "!:" is probably supposed to be "0]1".
Sent from my Verizon, Sam
The "01" following the "!:" is probably supposed to be "0]1".
Sent from my Verizon, Samsung Galaxy smartphone
Original message From: Michal Wallace
Date: 6/19/18 16:06 (GMT-05:00) To:
programm...@jsoftware.com Subject: Re: [Jprogramming] getline
readln =: [: (1!:01) 1:
readln =: [: (1!:01) 1:
On Tue, Jun 19, 2018 at 2:45 PM james faure wrote:
> Hello, how can one read stdin one line at a time ?
>
>
> #! /usr/bin/j8
>
> stdin''
>
>
> is no good.
> --
> For information about J forums see htt
Hello, how can one read stdin one line at a time ?
#! /usr/bin/j8
stdin''
is no good.
--
For information about J forums see http://www.jsoftware.com/forums.htm
15 matches
Mail list logo