๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
33 messages
33 total messages Started by anonymous Sun, 16 Jun 2019 12:53
Linux Command-Line Editors Vulnerable to High-Severity Bug
#305739
Author: anonymous
Date: Sun, 16 Jun 2019 12:53
10 lines
1079 bytes
(I have never understood why anyone would want to waste their time 
learning how to use that Vim crap.  Just a foolish venture into 
egotistical intellectual chauvinism.)

A bug impacting editors Vim and Neovim could allow a trojan code to 
escape sandbox mitigations.

https://threatpost.com/linux-command-line-editors-high-severity-
bug/145569/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305743
Author: Anonymous
Date: Sun, 16 Jun 2019 12:56
2 lines
845 bytes
<https://threatpost.com/linux-command-line-editors-high-severity-
bug/145569/>
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305740
Author: Fenris
Date: Sun, 16 Jun 2019 13:53
6 lines
1290 bytes
On Sun, 16 Jun 2019, anonymous wrote:
> (I have never understood why anyone would want to waste their time
> learning how to use that Vim crap.  Just a foolish venture into
> egotistical intellectual chauvinism.)

Once you ware a admin for several unix flavours you may know why.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305741
Author: The Natural Philosopher
Date: Sun, 16 Jun 2019 14:35
17 lines
1756 bytes
On 16/06/2019 14:53, Fenris wrote:
> On Sun, 16 Jun 2019, anonymous wrote:
>> (I have never understood why anyone would want to waste their time
>> learning how to use that Vim crap.ย  Just a foolish venture into
>> egotistical intellectual chauvinism.)
> 
> Once you ware a admin for several unix flavours you may know why.

vi was all one could rely on. I have written thousands of lines in vi.


-- 
"Corbyn talks about equality, justice, opportunity, health care, peace, 
community, compassion, investment, security, housing...."
"What kind of person is not interested in those things?"

"Jeremy Corbyn?"
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305744
Author: Roger Blake
Date: Sun, 16 Jun 2019 15:30
16 lines
1843 bytes
On 2019-06-16, The Natural Philosopher <tnp@invalid.invalid> wrote:
> vi was all one could rely on. I have written thousands of lines in vi.

Same here. Probably the thing to do is add "set nomodeline" to the
system-wide vim configuration (/etc/vim/vimrc.local). On at least
one system I spot-checked this was already in the system-wide vimrc
with a comment that this is a dangerous feature.

-- 
-----------------------------------------------------------------------------
  Roger Blake (Posts from Google Groups killfiled due to excess spam.)

  NSA sedition and treason        -- http://www.DeathToNSAthugs.com
  Don't talk to cops!             -- http://www.DontTalkToCops.com
  Badges don't grant extra rights -- http://www.CopBlock.org
-----------------------------------------------------------------------------
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305746
Author: Sir Gaygory's Owner's Owner ๐Ÿถ็ฌ›
Date: Sun, 16 Jun 2019 16:57
67 lines
6170 bytes
On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous"
<anonymous@rip.ax.lt> determined that the following was of great
importance and subsequently decided to freely share it with us in
<qe5e54$opq$1@neodome.net>:
 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก (I have never understood why anyone would want to waste their time
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก learning how to use that Vim crap.  Just a foolish venture into
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก egotistical intellectual chauvinism.)
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก A bug impacting editors Vim and Neovim could allow a trojan code to
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก escape sandbox mitigations.
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก https://threatpost.com/linux-command-line-editors-high-severity-
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก bug/145569/

maybe because sometimes it's the only editor available on some systems.

were you a sysadmin, you'd probably not have this jealous attitude.

-- 
[THIS POAST HAS PASSED TRIMCHECKยฎ VALIDATION]

THIS SPACE FOR RENT
https://www.youtube.com/watch?v=iB6B8jGSdLA

"Thanks to muzzies and their apologist-enablers like puppy whistle, this 
seems to be the new norm in the world.  It's spreading like a cancer, 
and it's time we admit we're at war with pure evil.  We need to put an 
end to this muzzie plague, or life on Earth is going to become pure hell 
everywhere.  We need to get these people out of every civilized 
country, and there's only one way to do it.  IOW, we have to become 
like them, with an emphasis on expediency over cruelty." - Checkmate (of alt.checkmate) 

"Pussy Willow has just proven that Trump's crackdown on previously
unenforced immigration policies is working.  We'll deal with the domestic
terrorists as needed, but we don't need to be letting the muzzie
terrorists get a foothold in our country too.  One need only look at what
they're doing in Europe right now to know we're doing the right thing by
keeping them out, which is our right and our duty. - Checkmate (#1 pussy willow fan)

-

"You just made puppy whistle's sig line longer." - Janithor

-

"If I have a complaint about the (Southern Poverty) Law Center's description (of the alt-right movement), it is the phrase "heavy use of social media," which implies the alt-right is a real-world movement which uses a lot of social media. This is backwards: it is an online movement which occasionally appears in the real world. Where it gets punched." - Jason Rhode 

-

"I think we should destroy every last fucking mosque in America." - "Checkmate, DoW #1" <Lunatic.Fringe@The.Edge> proves for us that white males are violent in Message-ID: <MPG.32c5bfefd18c9a698f0a8@news.altopia.com>

-

Golden Killfile, June 2005
KOTM, November 2006
Bob Allisat Memorial Hook, Line & Sinker, November 2006
Special Ops Cody Memorial Purple Heart, November 2006
Special Ops Cody Memorial Purple Heart, September 2007
Tony Sidaway Memorial "Drama Queen" Award, November 2006
Busted Urinal Award, April 2007
Order of the Holey Sockpuppet, September 2007
Barbara Woodhouse Memorial Dog Whistle, September 2006
Barbara Woodhouse Memorial Dog Whistle, April 2008
Tinfoil Sombrero, February 2007
AUK Mascot, September 2007
Putting the Awards Out of Order to Screw With the OCD Fuckheads, March 2016 
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305747
Author: Grant Taylor
Date: Sun, 16 Jun 2019 17:12
25 lines
2045 bytes
On 6/16/19 6:53 AM, anonymous wrote:
> (I have never understood why anyone would want to waste their time 
> learning how to use that Vim crap.

Perhaps you could learn if you took the time to ask why someone would 
want to do that.

Note:  Asking why someone wants to do something does not mean that you 
have to agree with it or do so yourself.

> Just a foolish venture into egotistical intellectual chauvinism.)

I disagree.  Ego has nothing to do with it.  It's simply the best tool 
that I've found for the job at hand.  If a different tool works better 
for you, then use what you want.

I've found vim to be quite fast and allow me to do many things that are 
difficult if not impossible to do in other editors.  Some of which 
aren't possible even in simpler vi, ex, or ed.



-- 
Grant. . . .
unix || die
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305748
Author: J.O. Aho
Date: Sun, 16 Jun 2019 19:28
21 lines
1918 bytes
On 16/06/2019 18.57, Sir Gaygory's Owner's Owner ๐Ÿถ็ฌ› wrote:
> On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous"
> <anonymous@rip.ax.lt> determined that the following was of great
> importance and subsequently decided to freely share it with us in
> <qe5e54$opq$1@neodome.net>:
>   
> โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก (I have never understood why anyone would want to waste their time
> โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก learning how to use that Vim crap.  Just a foolish venture into
> โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก egotistical intellectual chauvinism.)
>
> maybe because sometimes it's the only editor available on some systems.
> 
> were you a sysadmin, you'd probably not have this jealous attitude.
> 

Could just be the eternal flamewar between Emacs and Vi ;)


-- 

  //Aho
How come we're not talking about (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
#305749
Author: Kenny McCormack
Date: Sun, 16 Jun 2019 20:12
12 lines
1550 bytes
In article <gmnjigFee8sU2@mid.individual.net>,
J.O. Aho <user@example.net> wrote:
...
>Could just be the eternal flamewar between Emacs and Vi ;)

How come all this idle chit-chat about editors and the people who use them,
and nothing about the supposed "vulnerability" (aka, security threat)
alluded to?

-- 
People who want to share their religious views with you
almost never want you to share yours with them. -- Dave Barry
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305750
Author: Siri Cruise
Date: Sun, 16 Jun 2019 20:26
14 lines
2305 bytes
In article <qe5e54$opq$1@neodome.net>, "anonymous" <anonymous@rip.ax.lt> wrote:

> (I have never understood why anyone would want to waste their time 
> learning how to use that Vim crap.  Just a foolish venture into 
> egotistical intellectual chauvinism.)

You don't always have X-Windows or Aqua available, such as telnet, ssh, sudo. vi 
does a gui within a terminal window or terminal device.

-- 
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted.    @
'I desire mercy, not sacrifice.'                                    /|\
The first law of discordiamism: The more energy   This post         / \
to make order is nore energy made into entropy.   insults Islam.  Mohammed
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305751
Author: Snit
Date: Sun, 16 Jun 2019 20:34
30 lines
2458 bytes
On 6/16/19 1:26 PM, Siri Cruise wrote:
> In article <qe5e54$opq$1@neodome.net>, "anonymous" <anonymous@rip.ax.lt> wrote:
> 
>> (I have never understood why anyone would want to waste their time
>> learning how to use that Vim crap.  Just a foolish venture into
>> egotistical intellectual chauvinism.)
> 
> You don't always have X-Windows or Aqua available, such as telnet, ssh, sudo. vi
> does a gui within a terminal window or terminal device.
> 

It is also a very powerful text editor for situations where you have 
massive log files and the like. I tend to use BBEdit (and even that the 
free version) but I do not have the higher end needs that vi serves MUCH 
better... but I realize it does.

It is sorta like LibreOffice and Word... LibreOffice works great for 
many things but Word is for "bigger" tasks. Or maybe even moreso -- GIMP 
and Photoshop. GIMP is wonderful but it is simply not a replacement for 
Photoshop.

In this case the open source solution, vi, is the solution for "bigger" 
text editing tasks.

-- 
Personal attacks from those who troll show their own insecurity. They 
cannot use reason to show the message to be wrong so they try to feel 
somehow superior by attacking the messenger.

They cling to their attacks and ignore the message time and time again.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305752
Author: Andreas Kohlbach
Date: Sun, 16 Jun 2019 20:53
21 lines
2320 bytes
On Sun, 16 Jun 2019 15:35:28 +0100, The Natural Philosopher wrote:
>
> On 16/06/2019 14:53, Fenris wrote:
>> On Sun, 16 Jun 2019, anonymous wrote:
>>> (I have never understood why anyone would want to waste their time
>>> learning how to use that Vim crap.ย  Just a foolish venture into
>>> egotistical intellectual chauvinism.)
>>
>> Once you ware a admin for several unix flavours you may know why.
>
> vi was all one could rely on. I have written thousands of lines in vi.

Before I switched to Emacs Gnus I used slrn as newsreader, and the editor
of choice was vi.

F'up comp.os.linux.misc
-- 
Andreas

My random thoughts and comments
https://news-commentaries.blogspot.com/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305759
Author: Freenet
Date: Mon, 17 Jun 2019 01:44
6 lines
1078 bytes
> 
> (I have never understood why anyone would want to waste their time
> learning how to use that Vim crap.  Just a foolish venture into
> egotistical intellectual chauvinism.)

  What I hate about it is when I accidentally start it.  I then usually have to go and dig around the web to find out how to close it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305754
Author: Jasen Betts
Date: Mon, 17 Jun 2019 12:41
13 lines
1830 bytes
On 2019-06-17, Freenet <pieer@free.fr> wrote:
>> 
>> (I have never understood why anyone would want to waste their time
>> learning how to use that Vim crap.  Just a foolish venture into
>> egotistical intellectual chauvinism.)
>
>   What I hate about it is when I accidentally start it.  I then usually have to go and dig around the web to find out how to close it.

indeed that is the one essential vi skill <Esc> : q ! <Enter>


-- 
  When I tried casting out nines I made a hash of it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305763
Author: School of Agriculture
Date: Mon, 17 Jun 2019 19:35
10 lines
1237 bytes
> 
> On Sun, 16 Jun 2019, anonymous wrote:
> 
>> (I have never understood why anyone would want to waste their time
>> learning how to use that Vim crap.  Just a foolish venture into
>> egotistical intellectual chauvinism.)
> 
> Once you ware a admin for several unix flavours you may know why.

  Isn't nano available on all flavors of Linux?
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305756
Author: The Natural Philosopher
Date: Mon, 17 Jun 2019 19:42
18 lines
1641 bytes
On 17/06/2019 20:35, School of Agriculture wrote:
>>
>> On Sun, 16 Jun 2019, anonymous wrote:
>>
>>> (I have never understood why anyone would want to waste their time
>>> learning how to use that Vim crap.  Just a foolish venture into
>>> egotistical intellectual chauvinism.)
>>
>> Once you ware a admin for several unix flavours you may know why.
> 
>    Isn't nano available on all flavors of Linux?
> 
Not in 1985

-- 
In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.

- George Orwell
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305758
Author: Roger Blake
Date: Mon, 17 Jun 2019 20:30
17 lines
1848 bytes
On 2019-06-17, School of Agriculture <ag@hick.edu> wrote:
>   Isn't nano available on all flavors of Linux?

The best editor is the one you don't have to think about, where muscle
memory takes over. I've been using vi since the early 1980s starting on
BSD 4.1 and using it is transparent at this point. I have to stop and
think to use nano. (I would not necessarily recommend vi/vim to someone
just starting out though.)

-- 
-----------------------------------------------------------------------------
  Roger Blake (Posts from Google Groups killfiled due to excess spam.)

  NSA sedition and treason        -- http://www.DeathToNSAthugs.com
  Don't talk to cops!             -- http://www.DontTalkToCops.com
  Badges don't grant extra rights -- http://www.CopBlock.org
-----------------------------------------------------------------------------
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305760
Author: Kenny McCormack
Date: Mon, 17 Jun 2019 20:30
25 lines
1992 bytes
In article <qe8q2c$9f8$1@news.mixmin.net>,
School of Agriculture <ag@hick.edu> wrote:
>> 
>> On Sun, 16 Jun 2019, anonymous wrote:
>> 
>>> (I have never understood why anyone would want to waste their time
>>> learning how to use that Vim crap.  Just a foolish venture into
>>> egotistical intellectual chauvinism.)
>> 
>> Once you ware a admin for several unix flavours you may know why.
>
>  Isn't nano available on all flavors of Linux?
>

Available, perhaps, in the sense of you could get it and compile it.

But not likely to already be there.

Also, who in the heck wants to use Windows Notepad (aka, nano) ?

-- 
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/LadyChatterley
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305762
Author: Andreas Kohlbach
Date: Mon, 17 Jun 2019 21:30
20 lines
2389 bytes
On Mon, 17 Jun 2019 12:41:08 -0000 (UTC), Jasen Betts wrote:
>
> On 2019-06-17, Freenet <pieer@free.fr> wrote:
>>> 
>>> (I have never understood why anyone would want to waste their time
>>> learning how to use that Vim crap.  Just a foolish venture into
>>> egotistical intellectual chauvinism.)
>>
>>   What I hate about it is when I accidentally start it.  I then
>> usually have to go and dig around the web to find out how to close
>> it.
>
> indeed that is the one essential vi skill <Esc> : q ! <Enter>

And that information is missing in the "splash screen" (displayed when
you open vi without a file name). This Red Button should IMO be mentioned.

F'up2 comp.os.linux.misc
-- 
Andreas
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305761
Author: Andreas Kohlbach
Date: Mon, 17 Jun 2019 21:31
22 lines
2352 bytes
On Mon, 17 Jun 2019 20:42:41 +0100, The Natural Philosopher wrote:
>
> On 17/06/2019 20:35, School of Agriculture wrote:
>>>
>>> On Sun, 16 Jun 2019, anonymous wrote:
>>>
>>>> (I have never understood why anyone would want to waste their time
>>>> learning how to use that Vim crap.  Just a foolish venture into
>>>> egotistical intellectual chauvinism.)
>>>
>>> Once you ware a admin for several unix flavours you may know why.
>>
>>    Isn't nano available on all flavors of Linux?
>>
> Not in 1985

There was no Linux in 1985. But Live Aid. :-D
-- 
Andreas

My random thoughts and comments
https://news-commentaries.blogspot.com/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305768
Author: Anonymous
Date: Tue, 18 Jun 2019 12:04
13 lines
1239 bytes
> 
>>
>> On Sun, 16 Jun 2019, anonymous wrote:
>>
>>> (I have never understood why anyone would want to waste their time
>>> learning how to use that Vim crap.  Just a foolish venture into
>>> egotistical intellectual chauvinism.)
>>
>> Once you ware a admin for several unix flavours you may know why.
> 
> Isn't nano available on all flavors of Linux?

  I was wondering that also.  No more replies.  That seems to have thrown a wrench in their rebuttals.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305765
Author: Fenris
Date: Tue, 18 Jun 2019 12:18
17 lines
1763 bytes
On Tue, 18 Jun 2019, Anonymous wrote:
>>>> (I have never understood why anyone would want to waste their time
>>>> learning how to use that Vim crap.  Just a foolish venture into
>>>> egotistical intellectual chauvinism.)
>>>
>>> Once you ware a admin for several unix flavours you may know why.
>>
>> Isn't nano available on all flavors of Linux?
>
>  I was wondering that also.  No more replies.  That seems to have thrown a wrench in their rebuttals.

Well, i was talking about unix but not linux only. At least on the unix 
systems i administrated - solaris, aix, hp-ux, ibm uss - there was no nano 
installed.
On the other hand I found on every system i had my hands on the 
vi editor.
But what do I know..
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305766
Author: The Natural Philosopher
Date: Tue, 18 Jun 2019 13:17
32 lines
2397 bytes
On 18/06/2019 13:18, Fenris wrote:
> On Tue, 18 Jun 2019, Anonymous wrote:
>>>>> (I have never understood why anyone would want to waste their time
>>>>> learning how to use that Vim crap.ย  Just a foolish venture into
>>>>> egotistical intellectual chauvinism.)
>>>>
>>>> Once you ware a admin for several unix flavours you may know why.
>>>
>>> Isn't nano available on all flavors of Linux?
>>
>> ย I was wondering that also.ย  No more replies.ย  That seems to have 
>> thrown a wrench in their rebuttals.
> 
> Well, i was talking about unix but not linux only. At least on the unix 
> systems i administrated - solaris, aix, hp-ux, ibm uss - there was no 
> nano installed.
> On the other hand I found on every system i had my hands on the vi editor.
> But what do I know..

Exactly. Some of us were not permies sitting at a desk able to install 
whatever we wanted and play with it, we were on short term contracts or 
on site visits setting up systems and the only thing you could guarantee 
access to was vi or its even more primitive forbear, ed.

https://en.wikipedia.org/wiki/Ed_(text_editor)



-- 
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305767
Author: chrisv
Date: Tue, 18 Jun 2019 13:52
25 lines
1976 bytes
The Natural Philosopher wrote:

>On 18/06/2019 13:18, Fenris wrote:
>> 
>> Well, i was talking about unix but not linux only. At least on the unix 
>> systems i administrated - solaris, aix, hp-ux, ibm uss - there was no 
>> nano installed.
>> On the other hand I found on every system i had my hands on the vi editor.
>> But what do I know..
>
>Exactly. Some of us were not permies sitting at a desk able to install 
>whatever we wanted and play with it, we were on short term contracts or 
>on site visits setting up systems and the only thing you could guarantee 
>access to was vi or its even more primitive forbear, ed.
>
>https://en.wikipedia.org/wiki/Ed_(text_editor)

Ish.

https://www.gnu.org/fun/jokes/ed-msg.html

-- 
"So sentient human beings should have their freedom restricted so that
some bits on a disk somewhere (source code) can have freedom instead."
-  trolling fsckwit "Ezekiel", attacking the GPL
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305778
Author: Jasen Betts
Date: Thu, 20 Jun 2019 05:57
35 lines
2576 bytes
On 2019-06-18, chrisv <chrisv@nospam.invalid> wrote:
> The Natural Philosopher wrote:
>
>>On 18/06/2019 13:18, Fenris wrote:
>>> 
>>> Well, i was talking about unix but not linux only. At least on the unix 
>>> systems i administrated - solaris, aix, hp-ux, ibm uss - there was no 
>>> nano installed.
>>> On the other hand I found on every system i had my hands on the vi editor.
>>> But what do I know..
>>
>>Exactly. Some of us were not permies sitting at a desk able to install 
>>whatever we wanted and play with it, we were on short term contracts or 
>>on site visits setting up systems and the only thing you could guarantee 
>>access to was vi or its even more primitive forbear, ed.
>>
>>https://en.wikipedia.org/wiki/Ed_(text_editor)
>
> Ish.
>
> https://www.gnu.org/fun/jokes/ed-msg.html

until openssh started printing instructions on how to purge bad
records from known_hosts ed was my go-to solution

ed ~/.ssh/known_hosts
314
d
w
q

314 here is line number of the bad record taken from the error message.

-- 
  When I tried casting out nines I made a hash of it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305780
Author: chrisv
Date: Thu, 20 Jun 2019 12:05
24 lines
1739 bytes
Jasen Betts wrote:

> chrisv <chrisv@nospam.invalid> wrote:
>>
>> https://www.gnu.org/fun/jokes/ed-msg.html
>
>until openssh started printing instructions on how to purge bad
>records from known_hosts ed was my go-to solution
>
>ed ~/.ssh/known_hosts
>314
>d
>w
>q
>
>314 here is line number of the bad record taken from the error message.

vi could have done the same...

-- 
'[chrisv is] the same dimwit who thinks that determining if software
works or not is accomplished through "compile time warnings" and not
by actually testing the software.'  -  trolling fsckwit "Ezekiel",
lying shamelessly
Using 'sed' to delete a line from a file (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
#305782
Author: Kenny McCormack
Date: Thu, 20 Jun 2019 12:32
35 lines
2260 bytes
In article <pgtmge5haptnvn6tu35fapmssdrnge92bo@4ax.com>,
chrisv  <chrisv@nospam.invalid> wrote:
...
>>until openssh started printing instructions on how to purge bad
>>records from known_hosts ed was my go-to solution
>>
>>ed ~/.ssh/known_hosts
>>314
>>d
>>w
>>q
>>
>>314 here is line number of the bad record taken from the error message.
>
>vi could have done the same...

Or sed.  Note: I don't often recommend sed - for reasons well explained by
a certain poster in comp.lang.awk, but this is one simple case where using
sed makes sense.

    sed -i.old 314d ~/.ssh/known_hosts

Note that this problem gets more tricky if you want to support deleting
more than one line in a single invocation.  I actually figured out a way to
do this with sed - by invoking sed twice - but I think if I had to do it
over again, I'd do it in gawk instead.

    # Untested, but looks right to me...
    gawk -i inplace 'BEGIN { for (i in ARGV) ToDelete[ARGV[i]] } !(NR in ToDelete)' \
	~/.ssh/known_hosts 314 319 762

-- 
A racist, a Nazi, and a Klansman walk into a bar...

Bartender says, "What will it be, Mr. Trump?"
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305783
Author: Anonymous
Date: Thu, 20 Jun 2019 13:31
23 lines
1245 bytes
> 
> Jasen Betts wrote:
> 
> 
>> chrisv <chrisv@nospam.invalid> wrote:
>>>
>>> https://www.gnu.org/fun/jokes/ed-msg.html
>>
>> until openssh started printing instructions on how to purge bad
>> records from known_hosts ed was my go-to solution
>>
>> ed ~/.ssh/known_hosts
>> 314
>> d
>> w
>> q
>>
>> 314 here is line number of the bad record taken from the error 
message.
> 
> vi could have done the same...

  After wasting time to learn it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305784
Author: Anonymous
Date: Thu, 20 Jun 2019 13:33
23 lines
1245 bytes
> 
> Jasen Betts wrote:
> 
> 
>> chrisv <chrisv@nospam.invalid> wrote:
>>>
>>> https://www.gnu.org/fun/jokes/ed-msg.html
>>
>> until openssh started printing instructions on how to purge bad
>> records from known_hosts ed was my go-to solution
>>
>> ed ~/.ssh/known_hosts
>> 314
>> d
>> w
>> q
>>
>> 314 here is line number of the bad record taken from the error 
message.
> 
> vi could have done the same...

  After wasting time to learn it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305785
Author: Anonymous
Date: Thu, 20 Jun 2019 13:42
23 lines
1245 bytes
> 
> Jasen Betts wrote:
> 
> 
>> chrisv <chrisv@nospam.invalid> wrote:
>>>
>>> https://www.gnu.org/fun/jokes/ed-msg.html
>>
>> until openssh started printing instructions on how to purge bad
>> records from known_hosts ed was my go-to solution
>>
>> ed ~/.ssh/known_hosts
>> 314
>> d
>> w
>> q
>>
>> 314 here is line number of the bad record taken from the error 
message.
> 
> vi could have done the same...

  After wasting time to learn it.
Re: Using 'sed' to delete a line from a file (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
#305787
Author: Grant Taylor
Date: Thu, 20 Jun 2019 18:17
17 lines
1961 bytes
On 6/20/19 6:32 AM, Kenny McCormack wrote:
> Note that this problem gets more tricky if you want to support deleting 
> more than one line in a single invocation.  I actually figured out 
> a way to do this with sed - by invoking sed twice

You can do it with a single invocation of sed:

    sed -i.old '418d;327d;125d' ~/.ssh/known_hosts

You don't /have/ to do the lower lines first.  But you do need to adjust 
the line numbers of lower lines if you delete earlier lines first.



-- 
Grant. . . .
unix || die
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305793
Author: Sir Gaygory's Owner's Owner ๐Ÿถ็ฌ›
Date: Fri, 21 Jun 2019 18:24
69 lines
7292 bytes
On Sun, 16 Jun 2019 21:28:16 +0200, LO AND BEHOLD; "J.O. Aho"
<user@example.net> determined that the following was of great
importance and subsequently decided to freely share it with us in
<gmnjigFee8sU2@mid.individual.net>:
 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก On 16/06/2019 18.57, ๐Ÿ’ฉ's Owner ๐Ÿถ็ฌ› wrote:
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous"
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก <anonymous@rip.ax.lt> determined that the following was of great
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก importance and subsequently decided to freely share it with us in
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก <qe5e54$opq$1@neodome.net>:   โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก (I have
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก never understood why anyone would want to waste their time
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก learning how to use that Vim crap. 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก Just a foolish venture into โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก egotistical intellectual chauvinism.) maybe because sometimes it's the 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก only editor available on some systems. were you a sysadmin, you'd
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก probably not have this jealous attitude. 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก 
โœกโœกโœกโœกโœกโœกโœกโœกโœกโœกโœก Could just be the eternal flamewar between Emacs and Vi ;)

i use both for different purposes, so i don't understand why anybody would want to be an evangelist for either.  there's no reason to fire up emacs to comment out a line in a config file, IMO, and i wouldn't want to edit 2000+ lines of code without syntax-highlighting and mouse scrolling in vi.

-- 
[THIS POAST HAS PASSED TRIMCHECKยฎ VALIDATION]

THIS SPACE FOR RENT
https://www.youtube.com/watch?v=iB6B8jGSdLA

"Thanks to muzzies and their apologist-enablers like puppy whistle, this 
seems to be the new norm in the world.  It's spreading like a cancer, 
and it's time we admit we're at war with pure evil.  We need to put an 
end to this muzzie plague, or life on Earth is going to become pure hell 
everywhere.  We need to get these people out of every civilized 
country, and there's only one way to do it.  IOW, we have to become 
like them, with an emphasis on expediency over cruelty." - Checkmate (of alt.checkmate) 

"Pussy Willow has just proven that Trump's crackdown on previously
unenforced immigration policies is working.  We'll deal with the domestic
terrorists as needed, but we don't need to be letting the muzzie
terrorists get a foothold in our country too.  One need only look at what
they're doing in Europe right now to know we're doing the right thing by
keeping them out, which is our right and our duty. - Checkmate (#1 pussy willow fan)

-

"You just made puppy whistle's sig line longer." - Janithor

-

"If I have a complaint about the (Southern Poverty) Law Center's description (of the alt-right movement), it is the phrase "heavy use of social media," which implies the alt-right is a real-world movement which uses a lot of social media. This is backwards: it is an online movement which occasionally appears in the real world. Where it gets punched." - Jason Rhode 

-

"I think we should destroy every last fucking mosque in America." - "Checkmate, DoW #1" <Lunatic.Fringe@The.Edge> proves for us that white males are violent in Message-ID: <MPG.32c5bfefd18c9a698f0a8@news.altopia.com>

-

Golden Killfile, June 2005
KOTM, November 2006
Bob Allisat Memorial Hook, Line & Sinker, November 2006
Special Ops Cody Memorial Purple Heart, November 2006
Special Ops Cody Memorial Purple Heart, September 2007
Tony Sidaway Memorial "Drama Queen" Award, November 2006
Busted Urinal Award, April 2007
Order of the Holey Sockpuppet, September 2007
Barbara Woodhouse Memorial Dog Whistle, September 2006
Barbara Woodhouse Memorial Dog Whistle, April 2008
Tinfoil Sombrero, February 2007
AUK Mascot, September 2007
Putting the Awards Out of Order to Screw With the OCD Fuckheads, March 2016 
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
#305823
Author: Anonymous
Date: Tue, 25 Jun 2019 13:11
6 lines
1506 bytes
> 
> (I have never understood why anyone would want to waste their time
> learning how to use that Vim crap.  Just a foolish venture into
> egotistical intellectual chauvinism.)

  Many people are not secure within themselves and like Vladimir Putin, they have to exhibit themselves by riding a horse shirtless to try to prove that they are a man.  Thus it is with most who learn a skill that is actually useless to them.  It is their all important inflated ego that matters, always trying to show themselves better than everyone else.  Such endeavors are thrown in the trash heap by really intelligent people, like the insistence that everyone should learn a foreign language, just to loose it afterwards.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads