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: Chet Ramey
Subject: Re: while loop with extdebug + debug trap always returning 1
Date: Sat, 8 Apr 2017 19:15:02 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0

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



reply via email to

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