3/5 Why is that when I edit the motd with VI, When I save, sometimes it
says it's been modified, use "!" to override. I thought when I use
vi to edit it, I get a lock on the file.
\_ Because the motd is a gloriously free file. the entire world can
and does edit it.
\_ If you have a lock, no one else *should* edit it, but they can.
Since they basically just stomped on your privelidge, I usually just
stomp on their changes.
\_ you shouldn't get a lock when you're editing the file. you could
be taking your sweet time typing stuff in, while other people are
waiting. when you're finally ready to save, your editor should
tell you if the file has changed on disk, and you can reload the
file and merge your changes if that's true. [formatd]
\_ That's acceptable in a development environment. in practice,
on a machine with hundreds of users, this is much more
difficult to accomplish. --scotsman
difficult to accomplish.
\_ in practice, on soda, it works fine for me.
\_ I'm not talking about "you". I'm talking about communal
\_ I'm not talking about "you". I'm talking about communal
use.
use. --scotsman
\_ umm, i am saying this would work fine on soda for
communal use, dimwit. the motd isn't *that* contended
for.
\_ Again. Not. Everyone. Uses. The. Same. Editor.
Not everyone on here has the same technical
ability. Are you going to personally train
everyone who accesses the motd? --scotsman
\_ you're dumb too, or can't read. i may have used
too many words to describe it, but this is one
of the simplest schemes possible if you still
want to be polite. simpler schemes generally
involve locking the file for yourself for
protracted lengths of time, or just going ahead
and overwriting other people's changes.
\_ You're very clearly not actually reading what
anyone has said. We know your side of the
\_ I'm not talking about "you". I'm talking about communal
use.
communal use, dimwit. the motd isn't *that* contended
for.
argument, but there are points to it you
are ignoring or dismissing. This is my
last word on it. --scotsman
\_ are you saying when you start up your editor on the motd, you
do get a note saying it's been locked? Actually, VI is very
good, if the file you are view is locked, it tells you its
in read-only mode.
\_ Not every editor is as helpful as vi. some don't even tell you
that the file on disk has changed. this is what motdedit has
tried to address, but it's a difficult task, and the current
motdedit has trouble when people remove sections. --scotsman
\_ so motdedit is trying to allow multiple edit sessions and
merging them?
\_ same as always.
\_ Only if you run motdedit -n or some jackass modifies
the motd without using motdedit.
\_ Only if you run motdedit -n or some jackass modifies
the motd without using motdedit.
\_ until motdedit is mandatory, motedit is an 'option'.
people who choose a different option from you are
not automatically assholes.
\_ so now what's the argument to not use motdedit?
just out of spite?
\_ same as always. |