On 5/08/2013 6:47 AM, Paul Gilmartin wrote:
On Sun, 4 Aug 2013 12:25:57 -0600, Mark Post wrote:
According to the man page:
The following environment variables may be consulted depending on the value of
the editor and env_editor sudoers settings:
VISUAL Invoked by visudo as the editor to use
EDITOR Used by visudo if VISUAL is not set
Seemed like a good idea, and that's what the man page I have says, also.
But the program seems not to match the man page; didn't work. So:
526 $ sudo strings `whence visudo` | grep editor
...
/usr/bin/editor
...
527 $ ls -l /usr/bin/editor
lrwxrwxrwx 1 root root 24 Sep 23 2012 /usr/bin/editor ->
/etc/alternatives/editor
528 $ ls -l /etc/alternatives/editor
lrwxrwxrwx 1 root root 17 Aug 4 16:23 /etc/alternatives/editor -> /bin/nano
sudo rm /etc/alternatives/editor
sudo ln -s /usr/bin/vim.tiny /etc/alternatives/editor
... works. Thanks for your encouragement.
On Sun, 4 Aug 2013 22:21:40 +0800, David Crayford wrote:
... --enable-ascii just turns on the EBCDIC FTMs. ...
There's some irony there.
groan! Time for bed.
It's always feels like a victory when you stumble across
a package that has already done the EBCDIC slog for you. ...
I wonder who did that? I also wonder how it would work
compiled in Enhanced ASCII mode.
I'm not sure but whoever it was knows what they are doing. It's a very
good implementation. It even handles the newline fiasco.
The EBCDIC character that corresponds to an ASCII LF is assumed to have
the value 0x15 by default. However, in some EBCDIC environments, 0x25
is used. In such an environment you should use
--enable-ebcdic-nl25
as well as, or instead of, --enable-ebcdic. The EBCDIC character for CR
has the same value as in ASCII, namely, 0x0d. Whichever of 0x15 and
0x25 is not chosen as LF is made to correspond to the Unicode NEL char-
acter (which, in Unicode, is 0x85).
The options that select newline behaviour, such as --enable-newline-is-
cr, and equivalent run-time options, refer to these character values in
an EBCDIC environment.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN