Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12052
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: SIGINT in a sourced script does not clean up some special variables |
| Date | 2015-12-19 21:12 -0500 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.238.1450577549.843.bug-bash@gnu.org> (permalink) |
| References | <5abcfcd2-65a0-454a-a7fb-400759114d40@googlegroups.com> |
On 11/10/15 3:36 AM, Grisha Levit wrote: > Apologies if I'm missing something about the expected SIGINT behavior. I've read through the previous SIGINT discussions but this still seems unexpected: > > $ declare -p BASH_ARGC BASH_ARGV BASH_SOURCE BASH_LINENO > declare -a BASH_ARGC=() > declare -a BASH_ARGV=() > declare -a BASH_SOURCE=() > declare -a BASH_LINENO=() > > $ source <(echo 'kill -INT $$') > > $ declare -p BASH_ARGC BASH_ARGV BASH_SOURCE BASH_LINENO > declare -a BASH_ARGC=([0]="1") > declare -a BASH_ARGV=([0]="/dev/fd/63") > declare -a BASH_SOURCE=([0]="/dev/fd/63") > declare -a BASH_LINENO=([0]="5") > > Additionally, FUNCNAME is not cleared in some cases: Thanks for the report. This will be fixed in the next release of bash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next — Previous in thread | Find similar | Unroll thread
SIGINT in a sourced script does not clean up some special variables Grisha Levit <grishalevit@gmail.com> - 2015-11-10 00:36 -0800 Re: SIGINT in a sourced script does not clean up some special variables Chet Ramey <chet.ramey@case.edu> - 2015-11-10 10:34 -0500 Re: SIGINT in a sourced script does not clean up some special variables Chet Ramey <chet.ramey@case.edu> - 2015-12-19 21:12 -0500
csiph-web