Revision 14724
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
280 | 280 |
|
281 | 281 |
alias init_i='declare i="${i-0}"' |
282 | 282 |
alias next_stack_frame='let! i++' # usage: init_i; __; next_stack_frame |
283 |
alias prev_stack_frame='let! i--' # usage: next_stack_frame;__; prev_stack_frame |
|
283 | 284 |
|
284 | 285 |
# makes stack_trace() skip the entry for the caller |
285 | 286 |
alias skip_stack_frame='init_i; next_stack_frame' |
Also available in: Unified diff
lib/sh/util.sh: added prev_stack_frame