bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistency between fc and C-x C-e


From: Chet Ramey
Subject: Re: Inconsistency between fc and C-x C-e
Date: Fri, 10 Jun 2022 10:19:09 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 6/9/22 11:57 PM, Lawrence Velázquez wrote:
On Thu, Jun 9, 2022, at 8:37 PM, Luciano wrote:
By the way, git seems to interpret the EDITOR variable in a way
consistent with C-x C-e, while the pass program as I said seems to just
execute $EDITOR, like fc. I wonder if POSIX leaves room for
interpretation here.

It does, insofar as it barely concerns itself with EDITOR at all.
It only specifies that the "crontab", "fc", "mailx", and "more"
utilities use EDITOR and advises other applications to avoid using
it in a conflicting manner.  (The descriptions of the aforementioned
utilities are not all that detailed vis-à-vis EDITOR and could
reasonably be interpreted as allowing either method, but it doesn't
really matter as far as other utilities are concerned.)

I didn't look at more than mailx, but the description there makes it clear
that $EDITOR needs to expand to a command name. `more' has similar wording
("The name of the editor shall be taken from the environment variable
EDITOR.") and talks about what to do if the last pathname component in
$EDITOR is `vi' or `ex'.

As I said in a different message, historical convention is that these are
command names.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]