[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cmdhist + multi-line command : empty lines do not get semicolon corr
From: |
Chet Ramey |
Subject: |
Re: cmdhist + multi-line command : empty lines do not get semicolon correctly => wrong history |
Date: |
Mon, 17 Jan 2022 13:24:12 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 1/14/22 6:42 PM, Joakim Lindblad wrote:
Bash Version: 5.1
Patch Level: 16
Release Status: release
Description:
Using the default `shopt -s cmdhist; shopt -u lithist`,
multi-line commands which include completely empty lines (e.g.
copied from a spaciously formatted script)
do not get the appropriate semicolons. Thus, the command being
stored in the history is wrong!
Thanks for the report.
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/