Menu

Should I submit these changes for bashdb?

2023-12-13
2024-01-14
  • Rocky Bernstein

    Rocky Bernstein - 2023-12-13

    Thanks - I will look at the changes this weekend to let you know.

     
  • Rocky Bernstein

    Rocky Bernstein - 2023-12-16

    Yes, please submit these, to the extent we can, I would prefer the code bases to be as close as possible.

    As for the changes due pygments changing things from time to type, my view is that this is fragility in testing . Testing should be done without pygmentizing output.

    There should be tests just to see that pygments does something, but that test needs to be crafted more carefully so that it does not rely too heavily on specific kinds of formatting that is likely to change. For example it might detect that listings vary the output, and maybe even check that keywords have tagging. around them.

    I am going to be busy until Jan 9th or so. After that I will probably have a lot more time to devote to open-source kinds of things.

     

    Last edit: Rocky Bernstein 2023-12-17
  • Joachim Ansorg

    Joachim Ansorg - 2024-01-05

    @rockyb Thanks!
    I've submitted most of the commits as merge requests. There's one against 4.4 and one against 5.1 where applicable.
    I've kept most PRs to just one commit to help with the review.

     
  • Rocky Bernstein

    Rocky Bernstein - 2024-01-05

    Starting next week my time will finally free up. for open-source things. The top priority will be whatever is needed for bashdb and zshdb.

     
  • Jokerwild

    Jokerwild - 2024-01-13

    I am using Termux in Android without root, and my understanding of Bash is rather rudimentary, but I would like to help. I am a keen learner. I noted that the documentation didn't mention the ’git clone' download option, but I used it successfully: ’git clone https://git.code.sf.net/p/bashdb/code bashdb-code’. The ’INSTALL' instructions in my local directory are a bit esoteric for me considering I am running Android without root, so I have parked them for the time being. I even tried using Bing Copilot, Google Bard and both shell-gpt and code-interpreter in the Termux commandline to help me iterate the code, but it was still too esoteric for me to action.

    If I can assist in any simple way with this project to start with, please let me know. I can definitely test the new version to see if it works on Android and I can assist with updating documentation. I note the comments that a person recently updated the install script to represent their system's version of Bash, and they said that after doing this, the install script worked on their system. I am running Bash 5.2.15(1) and am just working on customising the install script for my system, but am having a bit of difficulty, because it is a bit beyond my skill level.

    I want to help with this project, as I am principally using Zsh in my host shell, but use Bash in my proot-distro alias of Debian, and it was in that isolated environment that I tried to install ’bashdb’ with ’apt’ but couldn't, as I wanted to use it to debug an issue with my .dircolorsrc file with which I am having problems. Upon searching, first in GitHub and then at SourceForge, I noticed that ’bashdb’ hadn't been updated for quite some time, but that there were very recent comments on the project, so I resolved to offer my assistance.

     
    👍
    1

    Last edit: Jokerwild 2024-01-13
  • Rocky Bernstein

    Rocky Bernstein - 2024-01-13

    @Jokerwild - I have created a github repository for this and copied all of the code there.

    If you have a github account, please suggest changes from the above as Pull Requests (PR's) there.

    Here is a suggestion for something to do that is both needed and will get understanding the code better. Look at https://github.com/rocky/zshdb/ and the more recent changes there. See if these can be applied to bashdb.

    When this project was started, there wasn't much in the way of linters for shell code. In the past I have used ksh -n which offers some checks. Nowadays there is "ShellCheck" .

    Another suggestion is to take the individual patches suggested in https://sourceforge.net/p/bashdb/discussion/206895/thread/9c6c4fd536/#53ac and turn these into PRs.

     

    Last edit: Rocky Bernstein 2024-01-13
  • Jokerwild

    Jokerwild - 2024-01-14

    Rocky, sure, I will have a look at zshdb on GitHub, as you suggest.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.