You are not logged in.

#1 2015-08-17 12:30:05

FastCode
Member
Registered: 2015-08-17
Posts: 5

visudo prints ": At EOF" non-stop when interrupted with ^C

how to reproduce:

sudo visudo

or

su -c visudo

Press Control C
result:

:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:
At EOF
:

each extra ^C makes it pause/unpause printing
The memory usage of the vi process doesn't change.
Command line is /usr/bin/vi --  /etc/sudoers.tmp running as user root
stat returns this:

stat: cannot stat ‘/etc/sudoers.tmp’: No such file or directory

I have no idea what to do.
don't suggest nano, I want vi to work. it's a clean install.

Linux bz 4.1.4-1-ARCH #1 SMP PREEMPT Mon Aug 3 21:30:37 UTC 2015 x86_64 GNU/Linux


EDIT

btw, I read this. Same issue, ages ago. no real solution.
https://bbs.archlinux.org/viewtopic.php?id=108010

Last edited by FastCode (2015-08-17 12:43:09)

Offline

#2 2015-08-17 12:34:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

https://bbs.archlinux.org/viewtopic.php?id=108010
What do you want ^C to do?


When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Last edited by karol (2015-08-17 12:35:05)

Offline

#3 2015-08-17 12:39:30

FastCode
Member
Registered: 2015-08-17
Posts: 5

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

Control C :wq
is there another way I'm not aware of?

Offline

#4 2015-08-17 12:41:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

No idea what you mean. You can quit with ':wq'. What do you need ^C for?

Offline

#5 2015-08-17 12:44:09

FastCode
Member
Registered: 2015-08-17
Posts: 5

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

You can't just write :wq while you're in insert mode.
let me put it this way.
vi works, visudo doesn't

Offline

#6 2015-08-17 12:49:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

What happens if your press Esc instead of ^C?

Edit: I too get screenfulls of the staircase EOF when presing ^C, but Esc works fine.

Last edited by karol (2015-08-17 12:58:48)

Offline

#7 2015-08-17 16:26:55

FastCode
Member
Registered: 2015-08-17
Posts: 5

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

it works, ty.
I've used vi for almost a decade and didn't know that.

Offline

#8 2015-08-17 16:53:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: visudo prints ": At EOF" non-stop when interrupted with ^C

Hitting ^C every time I want to exit insert mode seems almost painful. I'm glad this ordeal is over for you :-)

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB