Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Computers don't actually think. You just think they think. (We think.)


devel / comp.unix.programmer / Re: vaporware (was Re: ed in linux?)

SubjectAuthor
* ed in linux?Siri Cruise
`* Re: ed in linux?Ben Bacarisse
 +* Re: ed in linux?Siri Cruise
 |`- Re: ed in linux?Ben Bacarisse
 `* Re: ed in linux?Eric Pozharski
  `* Re: ed in linux?Siri Cruise
   +- Re: ed in linux?Scott Lurndal
   +* Re: ed in linux?Ralf Fassel
   |`- Re: ed in linux?Kenny McCormack
   `* Re: ed in linux?Eric Pozharski
    `* Re: vaporware (was Re: ed in linux?)Lew Pitcher
     `- Re: vaporware (was Re: ed in linux?)Eric Pozharski

1
ed in linux?

<chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17008&group=comp.unix.programmer#17008

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.unix.programmer
Subject: ed in linux?
Date: Sat, 19 Feb 2022 03:40:41 -0800
Organization: Pseudochaotic.
Lines: 26
Message-ID: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
Injection-Info: reader02.eternal-september.org; posting-host="c10968e7451fe91a090a4be290829985";
logging-data="20132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RKZfjAz/nv0DPubEyQ4SmMMBYDSpXKtc="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:c9L0FPn59UkNbhxkfRMQmXF7ViQ=
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Tract: St Tibbs's 95 Reeses Pieces.
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Cell: Defenders of Anarchy.
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-Patriot: Owe Canukistan!
X-Plain: Mayonnaise on white bread.
X-Politico: Vote early! Vote often!
 by: Siri Cruise - Sat, 19 Feb 2022 11:40 UTC

I want to conditionally edit a file in a makefile: if the file
has 'xyzzy' the file should not be changed. The make action is
akin to

(echo 'g/xyzzy/q'; \
echo 'more ed commands' \
echo ... \
echo wq) | ed file

On macosx, this works as expected: if the 'xyzzy' is anywhere in
the file, ed quits on the first command, the file is unchanged,
ed exit code is 0 and make continues.

On linux, the g fails (prints ?) and ed exits with a failure exit
code.

Does anyone have a suggestion so linux ed act like macos ed?

ob-irrlevqnt-rage-at-the-sky f*** this dying jeyboard!!!

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Doria sockpuppet. insults Islam. Mohammed

Re: ed in linux?

<87r17yda48.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17009&group=comp.unix.programmer#17009

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Sat, 19 Feb 2022 17:44:39 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <87r17yda48.fsf@bsb.me.uk>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f51400e7ec190735f319a4e583be4aef";
logging-data="20490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/1Cu5V0tMK9vchVqOlA62EhwFLwHF2Ts="
Cancel-Lock: sha1:XbnBtd2xPj4fRbXd7edalQn5APU=
sha1:+kOBOkSqJSdqGFmqDPmR4tS2SHQ=
X-BSB-Auth: 1.0676e55c86414eabd57e.20220219174439GMT.87r17yda48.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 19 Feb 2022 17:44 UTC

Siri Cruise <chine.bleu@yahoo.com> writes:

> I want to conditionally edit a file in a makefile: if the file
> has 'xyzzy' the file should not be changed. The make action is
> akin to
>
> (echo 'g/xyzzy/q'; \
> echo 'more ed commands' \
> echo ... \
> echo wq) | ed file

It's the ;. This works for me:

(echo 'g/xyzzy/q
another cmd
and another
w q
') | ed file

But I'd consider some other way myself. Something like

grep -q xyzzy file || some other command to edit the file

BTW,

printf "%s\n" l1 l2 l3 | ed file

is a simple way to get the newlines.

--
Ben.

Re: ed in linux?

<chine.bleu-F0F019.11320019022022@reader.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17010&group=comp.unix.programmer#17010

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Sat, 19 Feb 2022 11:32:08 -0800
Organization: Pseudochaotic.
Lines: 37
Message-ID: <chine.bleu-F0F019.11320019022022@reader.eternal-september.org>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org> <87r17yda48.fsf@bsb.me.uk>
Injection-Info: reader02.eternal-september.org; posting-host="c10968e7451fe91a090a4be290829985";
logging-data="31360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rp++eXyru7hkeejEfxcQC+hhTZeewbwo="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:q60L7Y+iCvgYlqiClNY0+LQr9LM=
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Tract: St Tibbs's 95 Reeses Pieces.
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Cell: Defenders of Anarchy.
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-Patriot: Owe Canukistan!
X-Plain: Mayonnaise on white bread.
X-Politico: Vote early! Vote often!
 by: Siri Cruise - Sat, 19 Feb 2022 19:32 UTC

In article <87r17yda48.fsf@bsb.me.uk>,
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:

> Siri Cruise <chine.bleu@yahoo.com> writes:
>
> > I want to conditionally edit a file in a makefile: if the file
> > has 'xyzzy' the file should not be changed. The make action is
> > akin to
> >
> > (echo 'g/xyzzy/q'; \
> > echo 'more ed commands' \
> > echo ... \
> > echo wq) | ed file
>
> It's the ;. This works for me:
>
> (echo 'g/xyzzy/q
> another cmd
> and another
> w
> q
> ') | ed file
>
> But I'd consider some other way myself. Something like
>
> grep -q xyzzy file || some other command to edit the file

That requires hunting down the makefile segments and driving
stqkes through their hearts, which I hoped to void.

'You Americans. You make everything so simple so complicated.'

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Doria sockpuppet. insults Islam. Mohammed

Re: ed in linux?

<87a6emd1pi.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17011&group=comp.unix.programmer#17011

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Sat, 19 Feb 2022 20:46:17 +0000
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <87a6emd1pi.fsf@bsb.me.uk>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk>
<chine.bleu-F0F019.11320019022022@reader.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f51400e7ec190735f319a4e583be4aef";
logging-data="32092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UX2w3WMC8Ploa0PETqps7bYfcCOxtmhs="
Cancel-Lock: sha1:PpAezMaCtbuTieqATxDsNpgM+bo=
sha1:LxGtlpmSCF+F8ScSgf62R0nRaAw=
X-BSB-Auth: 1.e3e5ae616ed5ca0f6441.20220219204617GMT.87a6emd1pi.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 19 Feb 2022 20:46 UTC

Siri Cruise <chine.bleu@yahoo.com> writes:

> In article <87r17yda48.fsf@bsb.me.uk>,
> Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
>
>> Siri Cruise <chine.bleu@yahoo.com> writes:
>>
>> > I want to conditionally edit a file in a makefile: if the file
>> > has 'xyzzy' the file should not be changed. The make action is
>> > akin to
>> >
>> > (echo 'g/xyzzy/q'; \
>> > echo 'more ed commands' \
>> > echo ... \
>> > echo wq) | ed file
>>
>> It's the ;. This works for me:
>>
>> (echo 'g/xyzzy/q
>> another cmd
>> and another
>> w
>> q
>> ') | ed file
>>
>> But I'd consider some other way myself. Something like
>>
>> grep -q xyzzy file || some other command to edit the file
>
> That requires hunting down the makefile segments and driving
> stqkes through their hearts, which I hoped to void.

You were looking for a way to make Linux ed support a different command
syntax? I think you are out of luck with that.

> 'You Americans. You make everything so simple so complicated.'

What have Americans got to do with the price of fish? Did an American
write the makefile? Piping to ed has long been considered an
anti-pattern.

--
Ben.

Re: ed in linux?

<slrnt16iod.t5s.whynot@orphan.zombinet>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17012&group=comp.unix.programmer#17012

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: whynot@pozharski.name (Eric Pozharski)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Mon, 21 Feb 2022 08:19:25 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <slrnt16iod.t5s.whynot@orphan.zombinet>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk>
Injection-Info: reader02.eternal-september.org; posting-host="41ef8526bee679690895195dab094102";
logging-data="24541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yXJtcj9KlnElkgt+vXCd2"
User-Agent: slrn/pre1.0.0-18 (Linux)
Cancel-Lock: sha1:9+W95SYIi1y7mEuw52plnWHfObQ=
 by: Eric Pozharski - Mon, 21 Feb 2022 08:19 UTC

with <87r17yda48.fsf@bsb.me.uk> Ben Bacarisse wrote:
> Siri Cruise <chine.bleu@yahoo.com> writes:

>> I want to conditionally edit a file in a makefile: if the file has
>> 'xyzzy' the file should not be changed. The make action is akin to
>>
>> (echo 'g/xyzzy/q'; \
>> echo 'more ed commands' \
>> echo ... \
>> echo wq) | ed file
>
> It's the ;. This works for me:

Let me stir into this higly intellectual discussion. Here comes:

This is fscked up on so many levels.

ben.usenet@, whatever you're doing works for you because you're running
same ed(1) as that of macos. chine.bleu@ has no problems with BSD ed,
they have problems with GNU ed. See where it's going?

chine.bleu@, GNU ed doesn't do any command suffixes except those that
print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).
Second, neither of you copy-paste -- neither your commands nor your
files. Is it too much to ask for The Complete Minimal Example? One
might only wonder what are reasons behind first escaping newlines, then
breaking this (effectevely) single-line with semicolons.

*SKIP*

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

Re: ed in linux?

<chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17013&group=comp.unix.programmer#17013

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Wed, 23 Feb 2022 08:19:05 -0800
Organization: Pseudochaotic.
Lines: 19
Message-ID: <chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org> <87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet>
Injection-Info: reader02.eternal-september.org; posting-host="905bb158ca284c10586b68c8e815628a";
logging-data="2832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195SlI5ht9TK+Zo8k/q4zHAWWqcMUIfnEk="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:aQH6KzFzDq30wBe2S0HWiVN/mZk=
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Tract: St Tibbs's 95 Reeses Pieces.
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Cell: Defenders of Anarchy.
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-Patriot: Owe Canukistan!
X-Plain: Mayonnaise on white bread.
X-Politico: Vote early! Vote often!
 by: Siri Cruise - Wed, 23 Feb 2022 16:19 UTC

In article <slrnt16iod.t5s.whynot@orphan.zombinet>,
Eric Pozharski <whynot@pozharski.name> wrote:

> chine.bleu@, GNU ed doesn't do any command suffixes except those that
> print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).

By command suffix you mean the '...' in 'g/re/...', correct?

[expletive deleted]. My alternative has been tclsh to read the
file, modify it with regsub etc, and write it back. I guess I'll
have to do that from now. ed doesn't do much, but it was easy to
invoke and I assumed would be universally equivalent on all
unices.

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Doria sockpuppet. insults Islam. Mohammed

Re: ed in linux?

<UAtRJ.14934$9%C9.10261@fx21.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17014&group=comp.unix.programmer#17014

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx21.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: ed in linux?
Newsgroups: comp.unix.programmer
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org> <87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet> <chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
Lines: 36
Message-ID: <UAtRJ.14934$9%C9.10261@fx21.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 23 Feb 2022 16:49:56 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 23 Feb 2022 16:49:56 GMT
X-Received-Bytes: 2227
 by: Scott Lurndal - Wed, 23 Feb 2022 16:49 UTC

Siri Cruise <chine.bleu@yahoo.com> writes:
>In article <slrnt16iod.t5s.whynot@orphan.zombinet>,
> Eric Pozharski <whynot@pozharski.name> wrote:
>
>> chine.bleu@, GNU ed doesn't do any command suffixes except those that
>> print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).
>
>By command suffix you mean the '...' in 'g/re/...', correct?
>
>[expletive deleted]. My alternative has been tclsh to read the
>file, modify it with regsub etc, and write it back. I guess I'll
>have to do that from now. ed doesn't do much, but it was easy to
>invoke and I assumed would be universally equivalent on all
>unices.

All versions of ed should support what is defined here:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html

Have you investigated sed or awk as an alternative?

Specifically, note for the global command that Posix says:

"The use of the g, G, v, V, and ! commands in the command
list produces undefined results"

This is likely because the various flavors of ed(1) in existance
when the standard was written did not all handle those commmands
in the same way.

Note that the gnu ed(1) manpage explicitly states that those
commands are not allowed as part of the global command-list.

Any commands are allowed, except for 'g', 'G', 'v', and 'V'. By
default, a newline alone in COMMAND-LIST is equivalent to a 'p'
command.

Re: ed in linux?

<ygaley1qxhw.fsf@akutech.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17015&group=comp.unix.programmer#17015

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Wed, 23 Feb 2022 18:54:51 +0100
Lines: 18
Message-ID: <ygaley1qxhw.fsf@akutech.de>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet>
<chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net FLWeBdyhTwUJQlfYiW3vTwHoCTXy/2oNUDUvPbShDsmNkXY34=
Cancel-Lock: sha1:kJQ527azIPqRN8/rYMh8oDPK2JU= sha1:7JoX1dxOnK+TR90PtDvBUJi8IWY=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
 by: Ralf Fassel - Wed, 23 Feb 2022 17:54 UTC

* Siri Cruise <chine.bleu@yahoo.com>
| In article <slrnt16iod.t5s.whynot@orphan.zombinet>,
| Eric Pozharski <whynot@pozharski.name> wrote:
>
| > chine.bleu@, GNU ed doesn't do any command suffixes except those that
| > print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).
>
| By command suffix you mean the '...' in 'g/re/...', correct?
>
| [expletive deleted]. My alternative has been tclsh to read the
| file, modify it with regsub etc, and write it back. I guess I'll
| have to do that from now. ed doesn't do much, but it was easy to
| invoke and I assumed would be universally equivalent on all unices.

*headscratch* What's wrong with 'sed'? Though I don't know if that
suffers the same deficiencies between platforms as 'ed'...

R'

Re: ed in linux?

<sv6065$rbve$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17016&group=comp.unix.programmer#17016

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Wed, 23 Feb 2022 18:59:17 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <sv6065$rbve$1@news.xmission.com>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org> <slrnt16iod.t5s.whynot@orphan.zombinet> <chine.bleu-AD17C6.08185623022022@reader.eternal-september.org> <ygaley1qxhw.fsf@akutech.de>
Injection-Date: Wed, 23 Feb 2022 18:59:17 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="897006"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Wed, 23 Feb 2022 18:59 UTC

In article <ygaley1qxhw.fsf@akutech.de>, Ralf Fassel <ralfixx@gmx.de> wrote:
>* Siri Cruise <chine.bleu@yahoo.com>
>| In article <slrnt16iod.t5s.whynot@orphan.zombinet>,
>| Eric Pozharski <whynot@pozharski.name> wrote:
>>
>| > chine.bleu@, GNU ed doesn't do any command suffixes except those that
>| > print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).
>>
>| By command suffix you mean the '...' in 'g/re/...', correct?
>>
>| [expletive deleted]. My alternative has been tclsh to read the
>| file, modify it with regsub etc, and write it back. I guess I'll
>| have to do that from now. ed doesn't do much, but it was easy to
>| invoke and I assumed would be universally equivalent on all unices.
>
>*headscratch* What's wrong with 'sed'? Though I don't know if that
>suffers the same deficiencies between platforms as 'ed'...

sed is just so ... weird.

Most sensible people recommend against using sed for anything other than
simple s/foo/bar/g usage. Once you get past that, things just start
getting weird.

Also, yes, I'm sure there's variation across platforms. Most people will
be used to the GNU version (of sed or anything else) and get used to using
GNU extensions, which leads to, well, you know...

In particular, one nice thing about using a real editor (such as "ed") in a
batch/scripted way (as opposed to using something more batch/script
oriented like "sed") is that it natively edits in place. That is, you
script it, and it writes back to the original file by default. With sed
and other batch/script oriented tools, you have to hem and haw to get "in
place" editing. (Yes, I know that it is a feature of GNU sed - thus, see
previous paragraph).

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/DanaC

Re: ed in linux?

<slrnt1emok.2ep.whynot@orphan.zombinet>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17017&group=comp.unix.programmer#17017

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: whynot@pozharski.name (Eric Pozharski)
Newsgroups: comp.unix.programmer
Subject: Re: ed in linux?
Date: Thu, 24 Feb 2022 10:16:52 +0000
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <slrnt1emok.2ep.whynot@orphan.zombinet>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet>
<chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
Injection-Info: reader02.eternal-september.org; posting-host="eede39698753e9dceb352406b41c6632";
logging-data="16658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rhYOeLkJe1lNa0jKlnd5L"
User-Agent: slrn/pre1.0.0-18 (Linux)
Cancel-Lock: sha1:MRz1JZQRKeg/2qT/j/AhMf/b0HI=
 by: Eric Pozharski - Thu, 24 Feb 2022 10:16 UTC

with <chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
Siri Cruise wrote:
> In article <slrnt16iod.t5s.whynot@orphan.zombinet>, Eric Pozharski
> <whynot@pozharski.name> wrote:

>> chine.bleu@, GNU ed doesn't do any command suffixes except those that
>> print (namely, 'l', 'p', 'n') (because, "Just because?", I guess).
> By command suffix you mean the '...' in 'g/re/...', correct?

Wrong. *I* was wrong. Indeed, "suffixes" are for anything but 'g'
brotherhood. For those four it's "command-list". Still, 'q' is
*rejected* for unspecified reasons:

[0:0]% cat ~/foo.s6ckUi.txt
foo
bar
[0:0]% ed !$
ed ~/foo.s6ckUi.txt
8 H
g/foo/q
?

%n
1 foo
2 bar
q

> [expletive deleted]. My alternative has been tclsh to read the file,
> modify it with regsub etc, and write it back. I guess I'll have to do
> that from now. ed doesn't do much, but it was easy to invoke and I
> assumed would be universally equivalent on all unices.

In last 12 month I've went through sources of pdns-recursor, dcron
(fscking vaporware), pppd, comgt, perl, and zsh. I don't know what are
you talking about and I'm not interested. I'm burnt out. I'm glad you
realized the dead-end early enough.

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

Re: vaporware (was Re: ed in linux?)

<sv83np$lbf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17020&group=comp.unix.programmer#17020

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.programmer
Subject: Re: vaporware (was Re: ed in linux?)
Date: Thu, 24 Feb 2022 14:12:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <sv83np$lbf$1@dont-email.me>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet>
<chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
<slrnt1emok.2ep.whynot@orphan.zombinet>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Feb 2022 14:12:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="982f83461e0a9550060cf18033ece8f3";
logging-data="21871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pW7gL9cljHPzyINoRrKxHsCN6+G72q6M="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:k5onFgu0iMfHUajVkdVc4skck/U=
 by: Lew Pitcher - Thu, 24 Feb 2022 14:12 UTC

> In last 12 month I've went through sources of pdns-recursor, dcron
> (fscking vaporware),

I'm curious. Can you elaborate on "dcron (fscking vaporware)"?

> pppd, comgt, perl, and zsh. I don't know what are
> you talking about and I'm not interested. I'm burnt out. I'm glad you
> realized the dead-end early enough.

Just eavesdripping ;-)
--
Lew Pitcher
"In Skills, We Trust"

Re: vaporware (was Re: ed in linux?)

<slrnt1hpku.gj1.whynot@orphan.zombinet>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17021&group=comp.unix.programmer#17021

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: whynot@pozharski.name (Eric Pozharski)
Newsgroups: comp.unix.programmer
Subject: Re: vaporware (was Re: ed in linux?)
Date: Fri, 25 Feb 2022 14:24:30 +0000
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <slrnt1hpku.gj1.whynot@orphan.zombinet>
References: <chine.bleu-DDDE46.03403319022022@reader.eternal-september.org>
<87r17yda48.fsf@bsb.me.uk> <slrnt16iod.t5s.whynot@orphan.zombinet>
<chine.bleu-AD17C6.08185623022022@reader.eternal-september.org>
<slrnt1emok.2ep.whynot@orphan.zombinet> <sv83np$lbf$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="99670ccaa5fef605ca76ac978b440249";
logging-data="13241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wLIJBgzqGgdEpu9wIaDjM"
User-Agent: slrn/pre1.0.0-18 (Linux)
Cancel-Lock: sha1:8FRZUNb6JHF5SPZipOIFOhGn34I=
 by: Eric Pozharski - Fri, 25 Feb 2022 14:24 UTC

with <sv83np$lbf$1@dont-email.me> Lew Pitcher wrote:

>> In last 12 month I've went through sources of pdns-recursor, dcron
>> (fscking vaporware),
> I'm curious. Can you elaborate on "dcron (fscking vaporware)"?

So, I need anacron themed functionality. I've fantasized about doing it
without anacron itself. Alegedly, dcron has ID=, AFTER=, EAGAIN, and
FREQ= -- thus, I have all building blocks I need. Or so I thought.

I dont't have distinct memory if AFTER= works ((probably it does),
problem is I've not reached that far because:

* EAGAIN works *only* if logging is at level DEBUG. Otherwise, errno=11
is treated like any other not null.

* FREQ= doesn't work at all. Like, it's illigal syntax.

Upon inspecting sources, I've discovered about 2/3 of EAGAIN code is
commented out. All about FREQ= code is commented out.

Otherwise, as minimal crond dcron is fine. I was so close.

>> pppd, comgt, perl, and zsh. I don't know what are you talking about
>> and I'm not interested. I'm burnt out. I'm glad you realized the
>> dead-end early enough.
> Just eavesdripping ;-)

Funny thing, comgt works indeed. Docu is so terrible, I just don't know
what to expect.

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor