Re: arguments to script prefixed with "--" in debug
From:
Jan Schampera
Subject:
Re: arguments to script prefixed with "--" in debug
Date:
Fri, 27 Feb 2009 14:17:46 +0100
User-agent:
Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
lehe wrote:
> Hi,
> I am trying to debug my shell script by bashdb. My script take as argument
> "--gdb", so I wrote
> bashdb myscript.sh --gdb
> However, this way it will produce error that bashdb:
> unrecognized option '--gdb'
>
> If I quote --gdb as
> bashdb myscript.sh '--gdb'
> then I will end up with the quotes as part of my argument.
>
> How could I fix this problem? Thanks!
I may be wrong (I son't have bashdb...), but what about good old
bashdb -- myscript --gdb
J.