Re: [BUG] RETURN trap with -o functrace: infinite recursion on 'eval return'

2018-04-13 Thread Martijn Dekker
Op 14-04-18 om 03:49 schreef Chet Ramey: On 4/10/18 5:56 AM, Martijn Dekker wrote: It seems odd that the RETURN trap would be triggered while a RETURN trap action is still being executed. Might it be better to temporarily deactivate the effect of '-o functrace' while a RETURN trap action is bein

Re: Errors in documentation

2018-04-13 Thread Chet Ramey
On 4/12/18 6:07 PM, Jorge Maldonado Ventura wrote: >> The SVR4.2 shell has two privilege-related builtins (|mldmode| and > |priv|) not present in Bash. > > This text is under the section "Appendix B Major Differences From The > Bourne Shell"; it should be under the section "B.1 Implementation > Di

Re: Character \001 disappears from here document if 'word' is unquoted.

2018-04-13 Thread Chet Ramey
On 4/12/18 12:13 PM, Jorge Alberto Baca Garcia wrote: > Bash Version: 4.4 > Patch Level: 18 > Release Status: release > > Description: > Character \001 disappears from here document if 'word' is unquoted. Thanks for the report. This will be fixed in the next devel branch push. Chet -- ``The

Re: [BUG] RETURN trap with -o functrace: infinite recursion on 'eval return'

2018-04-13 Thread Chet Ramey
On 4/10/18 5:56 AM, Martijn Dekker wrote: > $ bash -o functrace -c 'fn() { eval "return"; }; trap "fn" RETURN; fn' > > Result: segfault due to infinite recursion. Thanks for the report; I'll fix this. __ > > Even apart from this bug with 'eval return', the effect of '-o functrace' > is