Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Entropy requires no maintenance. -- Markoff Chaney


devel / comp.lang.mumps / Trailing % in "write" output

SubjectAuthor
* Trailing % in "write" outputSidney Reilley
`* Re: Trailing % in "write" outputed de moel
 `* Re: Trailing % in "write" outputSidney Reilley
  `* Re: Trailing % in "write" outputed de moel
   `* Re: Trailing % in "write" outputDuke
    `- Re: Trailing % in "write" output [SOLVED]Sidney Reilley

1
Trailing % in "write" output

<20211025075633.d7e9a3763639547a39c5e895@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=199&group=comp.lang.mumps#199

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Trailing % in "write" output
Date: Mon, 25 Oct 2021 07:56:33 -0600
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="fa0032c68325b61d7ba3b8544e83fd1b";
logging-data="23370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zwQtwkF8GufRaARMz4PSy"
Cancel-Lock: sha1:5NtdmjjPhx3RtraZHnRulSN6qRM=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Sidney Reilley - Mon, 25 Oct 2021 13:56 UTC

Noob here! Just an old tinkerer, trying to keep the grey cells
active. :-)

Using Okane's mumps implementation on a Debian-based Linux box.
Reading T.L. Wiechmann's "MUMPS Programming I Student Guide".

Testing the commands READ and WRITE.
The routine works OK, but the output always has a trailing _%_ .
Is this output buffer garbage? Do I need to flush the buffer first?
If so, how? TIA ..

Totally enjoying Mumps!!
--
Duke

Re: Trailing % in "write" output

<8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=200&group=comp.lang.mumps#200

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:1195:: with SMTP id m21mr18040716qtk.96.1635170429262;
Mon, 25 Oct 2021 07:00:29 -0700 (PDT)
X-Received: by 2002:ac8:5b8c:: with SMTP id a12mr17755783qta.342.1635170427981;
Mon, 25 Oct 2021 07:00:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 25 Oct 2021 07:00:27 -0700 (PDT)
In-Reply-To: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com>
Subject: Re: Trailing % in "write" output
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Mon, 25 Oct 2021 14:00:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 2
 by: ed de moel - Mon, 25 Oct 2021 14:00 UTC

There should not be any trailing characters.
Can you show the exact commands you are trying?

Re: Trailing % in "write" output

<20211025081512.a8f4d7f19ed228def0949d61@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=201&group=comp.lang.mumps#201

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Re: Trailing % in "write" output
Date: Mon, 25 Oct 2021 08:15:12 -0600
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20211025081512.a8f4d7f19ed228def0949d61@gmail.com>
References: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
<8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="fa0032c68325b61d7ba3b8544e83fd1b";
logging-data="3781"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jTG+uN2UIr0Feu0RWwXnX"
Cancel-Lock: sha1:BX3Osxo2w5BL8yXlIzVA8a+m/TQ=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Sidney Reilley - Mon, 25 Oct 2021 14:15 UTC

On Mon, 25 Oct 2021 07:00:27 -0700 (PDT)
ed de moel <eddemoel@gmail.com> wrote:

> There should not be any trailing characters.
> Can you show the exact commands you are trying?

[code]
#!/usr/bin/mumps

; routine to illustrate the commands
; DO, GOTO, and QUIT
READ ; get date from the user
read !!,"First Number: ",First
if First="" quit
read !,"Second Number: ",Second
if Second="" quit
DO RESULTS
GOTO READ
RESULTS ; display the results to screen
write !?5,"Sum: ",First+Second
write !?5,"Product: ",First*Second
quit ; end of routine
[/code]

It works, but the GOTO command doesn't seem to work in my routine.
I messed up somewhere! Thx!!

Re: Trailing % in "write" output

<7cf2eed4-d41c-4c13-90e6-4a3b20567a19n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=202&group=comp.lang.mumps#202

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:7e96:: with SMTP id w22mr17922286qtj.28.1635174558811;
Mon, 25 Oct 2021 08:09:18 -0700 (PDT)
X-Received: by 2002:a37:b742:: with SMTP id h63mr13875575qkf.204.1635174558624;
Mon, 25 Oct 2021 08:09:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 25 Oct 2021 08:09:18 -0700 (PDT)
In-Reply-To: <20211025081512.a8f4d7f19ed228def0949d61@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
<8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com> <20211025081512.a8f4d7f19ed228def0949d61@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7cf2eed4-d41c-4c13-90e6-4a3b20567a19n@googlegroups.com>
Subject: Re: Trailing % in "write" output
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Mon, 25 Oct 2021 15:09:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 1
 by: ed de moel - Mon, 25 Oct 2021 15:09 UTC

The rendition of white-space is always a problem on platforms like this, so it's hard to tell, but...
In your example, all lines, except the ones with a label (READ and RESULTS), should start with a space.

Re: Trailing % in "write" output

<f3bef0ae-3e8d-4c85-a084-6f08131b1161n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=203&group=comp.lang.mumps#203

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:305:: with SMTP id q5mr18575327qtw.131.1635175808911;
Mon, 25 Oct 2021 08:30:08 -0700 (PDT)
X-Received: by 2002:a37:9581:: with SMTP id x123mr14315564qkd.477.1635175808755;
Mon, 25 Oct 2021 08:30:08 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 25 Oct 2021 08:30:08 -0700 (PDT)
In-Reply-To: <7cf2eed4-d41c-4c13-90e6-4a3b20567a19n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:56a:7862:e400:16da:e9ff:fe13:6b04;
posting-account=KgDXmwoAAAC0yXS4JIhvW9CYf-pfPgw-
NNTP-Posting-Host: 2001:56a:7862:e400:16da:e9ff:fe13:6b04
References: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
<8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com> <20211025081512.a8f4d7f19ed228def0949d61@gmail.com>
<7cf2eed4-d41c-4c13-90e6-4a3b20567a19n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3bef0ae-3e8d-4c85-a084-6f08131b1161n@googlegroups.com>
Subject: Re: Trailing % in "write" output
From: sidney.reilley.ii@gmail.com (Duke)
Injection-Date: Mon, 25 Oct 2021 15:30:08 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: Duke - Mon, 25 Oct 2021 15:30 UTC

On Monday, October 25, 2021 at 9:09:19 a.m. UTC-6, ed de moel wrote:
> The rendition of white-space is always a problem on platforms like this, so it's hard to tell, but...
> In your example, all lines, except the ones with a label (READ and RESULTS), should start with a space.

Thx Ed! And they do start with a space (except for the labels) - actually 4 or 5 spaces. Would the extra whitespace matter?

Re: Trailing % in "write" output [SOLVED]

<20211025101453.68aa7648b05e8c96ef10e639@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=204&group=comp.lang.mumps#204

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Re: Trailing % in "write" output [SOLVED]
Date: Mon, 25 Oct 2021 10:14:53 -0600
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20211025101453.68aa7648b05e8c96ef10e639@gmail.com>
References: <20211025075633.d7e9a3763639547a39c5e895@gmail.com>
<8efdc98c-b3e5-4624-8b76-0048dd617301n@googlegroups.com>
<20211025081512.a8f4d7f19ed228def0949d61@gmail.com>
<7cf2eed4-d41c-4c13-90e6-4a3b20567a19n@googlegroups.com>
<f3bef0ae-3e8d-4c85-a084-6f08131b1161n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="fa0032c68325b61d7ba3b8544e83fd1b";
logging-data="24170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uO+hCKumEfYeCToi6tIq9"
Cancel-Lock: sha1:KpP67GrFemQVvficWaZ1l1EOgoA=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Sidney Reilley - Mon, 25 Oct 2021 16:14 UTC

On Mon, 25 Oct 2021 08:30:08 -0700 (PDT)
Duke <sidney.reilley.ii@gmail.com> wrote:

> On Monday, October 25, 2021 at 9:09:19 a.m. UTC-6, ed de moel
> wrote:
> > The rendition of white-space is always a problem on platforms
> > like this, so it's hard to tell, but... In your example, all
> > lines, except the ones with a label (READ and RESULTS), should
> > start with a space.
>
> Thx Ed! And they do start with a space (except for the labels) -
> actually 4 or 5 spaces. Would the extra whitespace matter?

Got it working! No trailing garbage in the output! WHY? God _only_
knows!

Also, I got rid of the "quit" command at the end of the routine,
and the "goto" command now works as expected. Entering a CR exits
the routine - as expected. Thanks Ed!
--
Duke

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor