[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Whether line editing disabled, to prevent "bash: bind: w
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Whether line editing disabled, to prevent "bash: bind: warning: line editing not enabled" |
Date: |
Mon, 16 Jul 2018 14:16:44 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 7/16/18 9:36 AM, R. Diez wrote:
> May I suggest that Bash provides a way of detecting whether line editing is
> active? I mean a way for a shell script to check the result stored in
> variable no_line_editing.
You can already check whether `vi' or `emacs' is enabled. If neither is
enabled, line editing is not enabled.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://tiswww.cwru.edu/~chet/