[juneau-lug] Re: visudo

  • From: James Zuelow <e5z8652@xxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Mon, 02 Feb 2004 06:05:52 -0900

On Sun, 1 Feb 2004 14:13:23 -0900 (AKST)
"Myron Davis" <myrond@xxxxxxxxxxx> wrote:

> 
> It actually does a little more then that, try running visudo, then
> modifying the sudo file and making a error, it will syntax check the
> /etc/sudoers, i.e.
> 
> >>> sudoers file: syntax error, line 20 <<<
> What now?
> 
> -Myron

Yeah, Myron is right - visudo DOES make syntax checks when you close the file.  
I change my sudo file so rarely that I usually read the manpage first, so 
didn't pick up on that I guess.  I remember the other vi* utilities as not 
being so nice.

What I would like is a nice colorized vi display, much like when you're writing 
perl or C.  Then you would see your errors right away when the text was the 
wrong color.  It's very hard to miss a " or ; in perl with a colorized display, 
as the whole line below the one you're editing turns the wrong color.

Cheers,

James

------------------------------------
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: