Shell tips and tricks
Tom Buskey
tom at buskey.name
Thu Nov 1 12:14:28 EDT 2007
On 11/1/07, Steven W. Orr <steveo at syslang.net> wrote:
>
> On Thursday, Nov 1st 2007 at 11:50 -0000, quoth Ben Scott:
> =>On 11/1/07, Steven W. Orr <steveo at syslang.net> wrote:
>
> =>> PS4='+${0##*/} line $LINENO: '
> =>
> => Wanna just tell us what that means? :-)
>
> Instead of running
>
> script
>
> if you want to debug it, then set PS4 and then run
>
> bash -x script
On the same note, has anyone used the bash debugger? I used the kshdb from
the O'Reilly KSH book when I was doing large scripts. The book explains how
they do it and I think PS4 is part of that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20071101/a14170c0/attachment.html
More information about the gnhlug-discuss
mailing list