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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to