<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 70: watch a variable with multiple strings caused errors</title><link href="https://sourceforge.net/p/bashdb/bugs/70/" rel="alternate"/><link href="https://sourceforge.net/p/bashdb/bugs/70/feed.atom" rel="self"/><id>https://sourceforge.net/p/bashdb/bugs/70/</id><updated>2021-07-06T13:49:45.382000Z</updated><subtitle>Recent changes to 70: watch a variable with multiple strings caused errors</subtitle><entry><title>#70 watch a variable with multiple strings caused errors</title><link href="https://sourceforge.net/p/bashdb/bugs/70/?limit=25#55ef" rel="alternate"/><published>2021-07-06T13:49:45.382000Z</published><updated>2021-07-06T13:49:45.382000Z</updated><author><name>Roland Christmann</name><uri>https://sourceforge.net/u/roc007/</uri></author><id>https://sourceforge.net90e28d5032cd421844f3091b139f9f53f811a3ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;oki thanks for your quick reaction. I will be happy to try the 5.1 version.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#70 watch a variable with multiple strings caused errors</title><link href="https://sourceforge.net/p/bashdb/bugs/70/?limit=25#ac6b" rel="alternate"/><published>2021-07-06T13:10:45.967000Z</published><updated>2021-07-06T13:10:45.967000Z</updated><author><name>Rocky Bernstein</name><uri>https://sourceforge.net/u/rockyb/</uri></author><id>https://sourceforge.net24205040c22a6272beeadc4559e356b81b9f9405</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks!  Should be fixed in the bash-4.2, bash-4.4, bash-5.0, and bash-5.1 branches  in commits 2912083,  fba89d9,  dd9847b,   and 9ccf28b respectively.&lt;/p&gt;
&lt;p&gt;But I make lots of mistakes which is why I work on debuggers. So please double check.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watch a variable with multiple strings caused errors</title><link href="https://sourceforge.net/p/bashdb/bugs/70/" rel="alternate"/><published>2021-07-06T12:32:30.523000Z</published><updated>2021-07-06T12:32:30.523000Z</updated><author><name>Roland Christmann</name><uri>https://sourceforge.net/u/roc007/</uri></author><id>https://sourceforge.net58282186f269865945245d0e9e168795e11b2ef5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;watch&lt;/strong&gt; a variable with multiple strings caused errors&lt;/p&gt;
&lt;p&gt;mon_test.sh&lt;br/&gt;
ARGS=$@&lt;/p&gt;
&lt;p&gt;$ bashdb -- mon_test.sh "Hello World !"&lt;/p&gt;
&lt;p&gt;bashdb&amp;lt;2&amp;gt; watch ARGS&lt;br/&gt;
&lt;strong&gt;/usr/share/bashdb/lib/msg.sh: line 127: printf: World: invalid number&lt;br/&gt;
/usr/share/bashdb/lib/msg.sh: line 127: printf: !: invalid number&lt;/strong&gt;&lt;br/&gt;
 0: ($ARGS)==Hello arith: 0 0: 0== arith: 0&lt;/p&gt;
&lt;p&gt;$bashdb_location/bashdb/command&lt;br/&gt;
$ diff -u watch.sh.ORIG watch.sh&lt;/p&gt;
&lt;p&gt;--- watch.sh.ORIG       2021-06-25 11:20:34.000000000 +0200&lt;br/&gt;
+++ watch.sh    2021-07-06 11:42:17.000000000 +0200&lt;br/&gt;
@@ -64,7 +64,7 @@&lt;br/&gt;
        _Dbg_watch_enable&lt;span&gt;[$n]&lt;/span&gt;=1&lt;br/&gt;
        _Dbg_watch_count&lt;span&gt;[$n]&lt;/span&gt;=0 &lt;br/&gt;
        _Dbg_printf '%2d: %s==%s arith: %d' $n \&lt;br/&gt;
-           "(${_Dbg_watch_exp&lt;span&gt;[$n]&lt;/span&gt;})" ${_Dbg_watch_val&lt;span&gt;[$n]&lt;/span&gt;} \&lt;br/&gt;
+           "(${_Dbg_watch_exp&lt;span&gt;[$n]&lt;/span&gt;})" "${_Dbg_watch_val&lt;span&gt;[$n]&lt;/span&gt;}" \&lt;br/&gt;
            ${_Dbg_watch_arith&lt;span&gt;[$n]&lt;/span&gt;} &lt;br/&gt;
     fi &lt;br/&gt;
     return 0 &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>