Re: Regression: EXIT traps always run in global context

2024-11-29 Thread Chet Ramey
On 11/27/24 11:23 PM, Ivan Shapovalov wrote: Bash Version: 5.2 Patch Level: 37 Release Status: release Description: Regression: When an EXIT trap runs, it runs in global context, i.e. does not see the locals defined in the function that was executing at the time of the e

history -f filename

2024-11-29 Thread Dan Jacobson
$ history is nice, but what if you want to have it read from a different file? $ help history says If FILENAME is given, it is used as the history file. Otherwise, if HISTFILE has a value, that is used, else ~/.bash_history. Alas, it also says history: history [-c] [-d offset] [n] or