<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/bashdb/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 15 Dec 2014 00:31:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bashdb/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm sorry I didn't see this sooner. Probably if this were filed under support requests or bugs I might have gotten a notification. Let's move discussion there if you are still interested.&lt;/p&gt;
&lt;p&gt;Yes, probably the debugger is not finding the bulk of the code library and the install is supposed to make sure it gets this right. In the bashdb script look for variable _Dbg_libdir and see what directory that points to and make sure that is there. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Mon, 15 Dec 2014 00:31:00 -0000</pubDate><guid>https://sourceforge.net8d62d32657a19d98291fe231d9220d89b5d193d9</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -6,7 +6,7 @@

 * [Evaluating the current source line before it runs](https://sourceforge.net/p/bashdb/wiki/Evaluating%20the%20current%20source%20line%20before%20it%20runs/)
 * [Nested Shell](https://sourceforge.net/p/bashdb/wiki/Nested%20Shell/)
-
+* [Other Cool Commands](https://sourceforge.net/p/bashdb/wiki/Cool%20Commands/)
 ##### Screenshot
 [[project_screenshots]]
 [[project_admins]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 12:02:33 -0000</pubDate><guid>https://sourceforge.netfaf70d3b9fbe9b44261f63eb5f6c8db1319a91cc</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,7 +1,6 @@
 We have source tarballs of debuggers for bash, python, zsh, ksh, GNU make 3.81 and Python.

-Most version control for many of these has been moved elsewhere, but we still have the *bash* repository here and that's what we use this wiki for.
-
+Version control, in git, for many of these has been moved elsewhere, but we still have the *bash* repository here. That's what we use this wiki for.

 Here is what we have so far for bash: 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 03:22:07 -0000</pubDate><guid>https://sourceforge.net84d066a1949e3cc493d9c93103975e108ca6829f</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -6,6 +6,7 @@
 Here is what we have so far for bash:

 * [Evaluating the current source line before it runs](https://sourceforge.net/p/bashdb/wiki/Evaluating%20the%20current%20source%20line%20before%20it%20runs/)
+* [Nested Shell](https://sourceforge.net/p/bashdb/wiki/Nested%20Shell/)

 ##### Screenshot
 [[project_screenshots]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 03:18:01 -0000</pubDate><guid>https://sourceforge.net79dc6c6b4dc9eb89fdf85fca859096eb9ae50219</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,9 +1,13 @@
-We have debuggers for bash, python, zsh, ksh, GNU make 3.81 and Python. In the patched sources for Make, we provide better error handling and tracing. GNU Emacs support is included for all debuggers.
+We have source tarballs of debuggers for bash, python, zsh, ksh, GNU make 3.81 and Python.

-Here is what we have so far: 
+Most version control for many of these has been moved elsewhere, but we still have the *bash* repository here and that's what we use this wiki for.
+
+
+Here is what we have so far for bash: 

 * [Evaluating the current source line before it runs](https://sourceforge.net/p/bashdb/wiki/Evaluating%20the%20current%20source%20line%20before%20it%20runs/)

+##### Screenshot
 [[project_screenshots]]
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 03:12:50 -0000</pubDate><guid>https://sourceforge.netbea624d320fff6a75bf6dca90d4ece083fa9205a</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,7 +1,8 @@
 We have debuggers for bash, python, zsh, ksh, GNU make 3.81 and Python. In the patched sources for Make, we provide better error handling and tracing. GNU Emacs support is included for all debuggers.

 Here is what we have so far: 
-*[[Evaluating the current source line before it runs]]
+
+* [Evaluating the current source line before it runs](https://sourceforge.net/p/bashdb/wiki/Evaluating%20the%20current%20source%20line%20before%20it%20runs/)

 [[project_screenshots]]
 [[project_admins]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 03:09:05 -0000</pubDate><guid>https://sourceforge.net86755a5ddd5f27c79f682241a673ac44bd4a5fae</guid></item><item><title>Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,8 @@
-Welcome to your wiki!
+We have debuggers for bash, python, zsh, ksh, GNU make 3.81 and Python. In the patched sources for Make, we provide better error handling and tracing. GNU Emacs support is included for all debuggers.

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Here is what we have so far: 
+*[[Evaluating the current source line before it runs]]

-The wiki uses [Markdown](/p/bashdb/wiki/markdown_syntax/) syntax.
-
+[[project_screenshots]]
 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Sun, 14 Dec 2014 03:07:13 -0000</pubDate><guid>https://sourceforge.net25b5a708937252df28fc1715fe020b092970b7f0</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Thank you for making your work available.&lt;/p&gt;
&lt;p&gt;I have tried using bashdb by following your example at:&lt;br /&gt;
&lt;a href="http://bashdb.sourceforge.net/bashdb.html#Summary"&gt;http://bashdb.sourceforge.net/bashdb.html#Summary&lt;/a&gt;&lt;br /&gt;
    1.1 A Sample BASH Debugger Session&lt;/p&gt;
&lt;p&gt;Did not succeed.&lt;/p&gt;
&lt;p&gt;Originally installed bashdb via opensuse YAST, then also the lastest version from your sources.&lt;br /&gt;
Same behaviour for both, both were the same version.&lt;/p&gt;
&lt;p&gt;================================================================================&lt;br /&gt;
Environment info:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; bashdb --version&lt;br /&gt;
bashdb, release 4.2-0.8&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; bash --version&lt;br /&gt;
GNU bash, version 4.2.45(1)-release (i586-suse-linux-gnu)&lt;br /&gt;
Copyright (C) 2011 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &lt;a href="http://gnu.org/licenses/gpl.html" rel="nofollow"&gt;http://gnu.org/licenses/gpl.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is free software; you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; gcc --version&lt;br /&gt;
gcc (SUSE Linux) 4.7.1 20120723 &lt;span&gt;[gcc-4_7-branch revision 189773]&lt;/span&gt; &lt;br /&gt;
Copyright (C) 2012 Free Software Foundation, Inc.                                                                                                                                 &lt;br /&gt;
This is free software; see the source for copying conditions.  There is NO                                                                                                        &lt;br /&gt;
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                                                                                                       &lt;br /&gt;
&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; uname -a&lt;br /&gt;
Linux saffrons.home 3.4.47-2.38-desktop #1 SMP PREEMPT Fri May 31 20:17:40 UTC 2013 (3961086) i686 i686 i386 GNU/Linux&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; cat /etc/SuSE-release&lt;br /&gt;
openSUSE 12.2 (i586)&lt;br /&gt;
VERSION = 12.2&lt;br /&gt;
CODENAME = Mantis&lt;/p&gt;
&lt;p&gt;================================================================================&lt;br /&gt;
Bug desc ( session transcript below in next section ).&lt;/p&gt;
&lt;p&gt;1)&lt;br /&gt;
After invoking the debugger with the script to debug&lt;br /&gt;
  bashdb /home/psaf/bin/fact.sh&lt;br /&gt;
I presume that the debugger started debugging its main script itself /usr/local/bin/bashdb&lt;br /&gt;
and not the "fact.sh" script.&lt;/p&gt;
&lt;p&gt;2)&lt;br /&gt;
After issuing "-" command, I get an error message&lt;br /&gt;
** Undefined command "-". Try "help".&lt;/p&gt;
&lt;p&gt;3)&lt;br /&gt;
Issuing "step" takes me to the end of the script directly.&lt;/p&gt;
&lt;p&gt;4)&lt;br /&gt;
Tried to debug this simple script:&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  Str=hello&lt;br /&gt;
  echo $Str&lt;br /&gt;
Analogous behaviour observed.&lt;/p&gt;
&lt;p&gt;5)&lt;br /&gt;
Apart from the debugger not doing what I expected, &lt;br /&gt;
I have found out that when calling it with "-L" option&lt;br /&gt;
and providing trailing "/" in the directory name, &lt;br /&gt;
I got an error "command not found" on line 86-89&lt;br /&gt;
as "print" is not a bash command nor present on my system.&lt;br /&gt;
In the section above, "echo" is used instead.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;74
75  # All _Dbg_libdir setting done above. Have we succeeded? 
76  if [[ ! -d &lt;span class="nv"&gt;$_Dbg_libdir&lt;/span&gt; ]] ; then 
77    echo &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Can't read debugger library directory '&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_libdir&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;'.&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
78    echo &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Perhaps bashdb is installed wrong (if its installed).&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
79    echo &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Try running bashdb using -L (with a different directory).&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
80    echo &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Run bashdb --help for a list and explanation of options.&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
81    exit 1
82  fi
83
84  typeset _Dbg_main=&amp;quot;&lt;span class="nv"&gt;$_Dbg_libdir&lt;/span&gt;/dbg-main.sh&amp;quot;
85  if [[ ! -r &lt;span class="nv"&gt;$_Dbg_main&lt;/span&gt; ]] ; then 
86    print &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Can't read debugger library file '&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_main&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;'.&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
87    print &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Perhaps bashdb is installed wrong (if its installed).&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
88    print &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Try running bashdb using -L (with a different directory).&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
89    print &amp;quot;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;_Dbg_pname&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;: Run bashdb --help for a list and explanation of options.&amp;quot; &amp;gt;&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;2
90    exit 1
91  fi
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;================================================================================&lt;br /&gt;
Session's transcript:&lt;/p&gt;
&lt;p&gt;psaf@saffrons:~&amp;gt; bashdb /home/psaf/bin/fact.sh&lt;br /&gt;
bash debugger, bashdb, release 4.2-0.8&lt;/p&gt;
&lt;p&gt;Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Rocky Bernstein&lt;br /&gt;
This is free software, covered by the GNU General Public License, and you are&lt;br /&gt;
welcome to change it and/or distribute copies of it under certain conditions.&lt;/p&gt;
&lt;p&gt;(/usr/local/bin/bashdb:1):&lt;br /&gt;
1:      #!/bin/bash&lt;br /&gt;
bashdb&amp;lt;0&amp;gt; -&lt;br /&gt;
** Undefined command "-". Try "help".&lt;br /&gt;
bashdb&amp;lt;0&amp;gt; info stack&lt;br /&gt;
-&amp;gt;0 in file `/usr/local/bin/bashdb' at line 1&lt;/p&gt;
&lt;h2 id="1-main-called-from-file-usrlocalbinbashdb-at-line-0"&gt;1 main() called from file `/usr/local/bin/bashdb' at line 0&lt;/h2&gt;
&lt;p&gt;bashdb&amp;lt;1&amp;gt; info source&lt;br /&gt;
Current script file is /usr/local/bin/bashdb&lt;br /&gt;
Located in /usr/local/bin/bashdb&lt;br /&gt;
Contains 97 lines.&lt;br /&gt;
No breakpoints have been set.&lt;br /&gt;
bashdb&amp;lt;2&amp;gt; step&lt;br /&gt;
Debugged program terminated normally. Use q to quit or R to restart.&lt;br /&gt;
bashdb&amp;lt;3&amp;gt; &lt;/p&gt;
&lt;p&gt;What I am doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Pavel Safranek&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pavel Safranek</dc:creator><pubDate>Tue, 14 Jan 2014 20:17:23 -0000</pubDate><guid>https://sourceforge.net89cffe81be6270cbf81e5deba009e9088fcbcc32</guid></item><item><title>WikiPage Home modified by Rocky Bernstein</title><link>https://sourceforge.net/p/bashdb/wiki/Home/</link><description>Welcome to your wiki!

This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses [Markdown](/p/bashdb/wiki/markdown_syntax/) syntax.

[[project_admins]]
[[download_button]]
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky Bernstein</dc:creator><pubDate>Mon, 10 Dec 2012 19:12:33 -0000</pubDate><guid>https://sourceforge.net5c8e8269921420b0cd4b620ed78d8aeb6a368f5b</guid></item></channel></rss>