/bash --debugger -i /tmp/foo.sh
hi

On Wed, Apr 29, 2015 at 9:39 PM, Chet Ramey <chet.ra...@case.edu> wrote:

> On 4/29/15 9:07 PM, Rocky Bernstein wrote:
>
> > And to the end of being more informative, In the thread you cited, there
> > was a suggestion about being more informative about skipping
> debugger_start() :
> >
> >> >/ Maybe something like this:/
> >> >/ /
> >> >/ bash: foo: debugger /usr/local/share/bashdb/bashdb-main.inc: No such
> file or /
> >> >/ directory/
> >> >/ bash: foo: disabling debugging mode/
> >
> > /.../
> >
> > /> > bash: foo: debugger /usr/bin/x: Permission denied/
> >
> > /> > bash: foo: disabling debugging mode/
> >
> >
> > It wouldn't be that hard to add this in an "else" branch.
>
> You might have tested that, too.  That went in at the same time.
>

 $ ./bash --debugger -i /tmp/foo.sh
hi

 $  ./bash --debugger /tmp/foo.sh
bash debugger, bashdb, release 4.3-0.91

Copyright 2002, 2003, 2004, 2006-2012, 2014 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/foo.sh:2):
2:    echo "hi"
bashdb<0>


> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    c...@case.edu
> http://cnswww.cns.cwru.edu/~chet/
>

Reply via email to