|
From: | Rocky Bernstein |
Subject: | Re: while loop with extdebug + debug trap always returning 1 |
Date: | Sat, 8 Apr 2017 19:52:14 -0400 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |