Re: history file missing timestamp when HISTFILESIZE reached

2023-03-20 Thread Rob Foehl
On Sun, 19 Mar 2023, Grisha Levit wrote: When HISTTIMEFORMAT is set and history file truncation is performed, the first line of the history file (i.e. the timestamp of the first entry) seems to always be missing /tmp/hist HISTTIMEFORMAT= HISTFILESIZE=3 HISTFILE=/tmp/hist bash --norc -in <<<$'

Re: parsing command substitution inside parameter expansion in interactive shell

2023-03-20 Thread Chet Ramey
On 3/19/23 9:58 PM, Grisha Levit wrote: If a command substitution inside a parameter expansion has a command followed by a newline, bash prints an error message (though the command is parsed and saved in the history list correctly): Thanks for the report. This is the same thing as https://list

Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
On 3/20/23 11:02 AM, Grisha Levit wrote: On Mon, Mar 20, 2023 at 10:57 AM Chet Ramey wrote: On 3/17/23 1:28 PM, Grisha Levit wrote: It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be execut

Re: EXIT trap definition order

2023-03-20 Thread Grisha Levit
On Mon, Mar 20, 2023 at 10:57 AM Chet Ramey wrote: > > On 3/17/23 1:28 PM, Grisha Levit wrote: > > It seems that if a trap handler for a terminating signal resends its > > own signal (after resetting the signal disposition), any configured > > EXIT trap will be executed (as I think is expected), b

Re: EXIT trap definition order

2023-03-20 Thread Chet Ramey
On 3/17/23 1:28 PM, Grisha Levit wrote: It seems that if a trap handler for a terminating signal resends its own signal (after resetting the signal disposition), any configured EXIT trap will be executed (as I think is expected), but only if an EXIT trap had already been set prior to the the firs