home | list info | list archive | date index | thread index

Re: is there a simpler way to add debugging statements to a bash script?

  • Subject: Re: is there a simpler way to add debugging statements to a bash script?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Fri, 25 Oct 2019 09:09:56 -0400 (EDT)
On Thu, 24 Oct 2019, Peter Meyer wrote:

> Hi Robert:
>
> Are you looking for something like:
> $ bash -vx {bash script}

  no, what i was describing was a helper function that would print any
collection of variables passed to it properly, distinguishing between
regular vars, arrays and associative arrays.

  i think i nailed it down, it's here for anyone who wants to play:

https://crashcourse.ca/dokuwiki/doku.php?id=shell_dump_function

rday

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org