From: Peng Y. <pen...@gm...> - 2008-07-22 02:48:07
|
Hi, Without using bashdb, I could use "$0" to get the bash script name. With bashdb I don't see a way to get the script name. Can I somebody let me know how to do it? Thanks, Peng $ cat echo.sh #!/bin/bash echo $0 $1 $ 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: echo $0 $1 bashdb<0> n /usr/bin/bashdb (/usr/bin/bashdb:285): 285: bashdb<1> n Debugged program terminated normally. Use q to quit or R to restart. bashdb<2> q |