From: Peng Y. <pen...@gm...> - 2008-07-22 02:35:56
|
Hi, I have used 'set -u' in my bash script. But it seems that bashdb is not friendly with 'set -u'. Can somebody fix this in future versions of bashdb? Thanks, Peng $ cat echo.sh #!/bin/bash set -u echo Hello $ bashdb echo.sh Bourne-Again Shell Debugger, release bash-3.1-0.06 Copyright 2002, 2003, 2004, 2006 Rocky Bernstein This is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. (/tmp/echo.sh:3): 3: set -u bashdb<0> n /usr/share/bashdb/dbg-fns.inc: line 63: _Dbg_file_cmd_StmpSechoDsh: unbound variable /usr/share/bashdb/dbg-fns.inc: line 96: _Dbg_action_StmpSechoDsh[5]: unbound variable /usr/share/bashdb/dbg-fns.inc: line 96: _Dbg_brkpt_StmpSechoDsh[5]: unbound variable (/tmp/echo.sh:5): 5: echo Hello bashdb<1> n Hello /usr/share/bashdb/dbg-fns.inc: line 63: _Dbg_file_cmd_SusrSbinSbashdb: unbound variable /usr/share/bashdb/dbg-fns.inc: line 96: _Dbg_action_SusrSbinSbashdb[285]: unbound variable /usr/share/bashdb/dbg-fns.inc: line 96: _Dbg_brkpt_SusrSbinSbashdb[285]: unbound variable /usr/share/bashdb/dbg-fns.inc: line 63: _Dbg_read_SusrSbinSbashdb: unbound variable /usr/share/bashdb/dbg-fns.inc: line 63: _Dbg_file_cmd_SusrSbinSbashdb: unbound variable /usr/share/bashdb/dbg-fns.inc: line 96: _Dbg_source_SusrSbinSbashdb[285]: unbound variable (/usr/bin/bashdb:285): 285: bashdb<2> q /usr/share/bashdb/dbg-sig.inc: line 271: BASHDB_RESTART_COMMAND: unbound variable |