[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pop_var_context msg when eval code with errexit set
From: |
Chet Ramey |
Subject: |
Re: pop_var_context msg when eval code with errexit set |
Date: |
Thu, 13 Oct 2022 10:45:39 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 |
On 10/12/22 10:25 AM, Chet Ramey wrote:
Then run this test script with 'errexit' option set:
$ ./bash -e test_script
test_script: line 5: pop_var_context: head of shell_variables not
a function context
It's an internal message warning that something might be wrong. We'll see
if something is.
In this case, it doesn't indicate that anything is wrong. The shell has
flushed all the local variable contexts because it's going to exit due
to errexit being enabled. I'll make a change to suppress the message in
this instance.
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/