bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: while loop with extdebug + debug trap always returning 1


From: Rocky Bernstein
Subject: Re: while loop with extdebug + debug trap always returning 1
Date: Sat, 8 Apr 2017 19:52:14 -0400

Good point! Will make note of that too.

On Sat, Apr 8, 2017 at 7:15 PM, Chet Ramey <chet.ramey@case.edu> wrote:
On 4/8/17 6:48 PM, Rocky Bernstein wrote:
> Thanks for giving me a heads up here. I have updated the bashdb
> documentation for the skip command make clear that $? is no changed in
> skipping an instruction.

OK. I was more concerned with documenting that using "skip" on the while
command test will result in it succeeding and the while command body
executing.

(And the state that the DEBUG trap saves is the same as any other trap
command: the only thing Posix says that gets saved and restored is $?.)

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://cnswww.cns.cwru.edu/~chet/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]