From: Mikael A. <sn...@te...> - 2003-08-05 23:42:54
|
It's nothing serious but a bit confusing. The shell-script below gives the following output in bashdb. A clarification: my bash executable is renamed to bashdb and the bashdb script to bash-debugger. ------- output snikkt> -bashdb --debugger multiline.sh (multiline.sh:6): 6: )` bashdb<0> s (multiline.sh:7): 7: echo $s #This line should not be displayed until later bashdb<((1))> s (multiline.sh:8): 8: #Didn't expect to see me ? bashdb<((2))> s (multiline.sh:9): 9: #And not me either ? bashdb<((3))> s (multiline.sh:7): 7: echo $s #This line should not be displayed until later bashdb<4> s This is not visible while debugging (multiline.sh:10): 10: bashdb<5> s Debugged program terminated normally. Use q to quit or R to restart. bashdb<6> q ----------- script #!/bin/bash s=`( echo This is echo not visible echo while debugging )` echo $s #This line should not be displayed until later #Didn't expect to see me ? #And not me either ? |