git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH 0/1] bdl-lib.sh: add bash debug logger

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 5, 2018, 13:37 UTC
Message-ID
<nycvar.QRO.7.76.6.1804051536080.55@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
In-Reply-To
<CAKk8isqA6Ru05kRJ+xiVHEkzPgH24cKUZbbgw2tEnw4rhafDQw@mail.gmail.com>
Hi Wink,
On Fri, 30 Mar 2018, Wink Saville wrote:
Show 20 quoted lines
> On Fri, Mar 30, 2018 at 3:34 AM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> >
> > On Tue, 27 Mar 2018, Wink Saville wrote:
> >
> >> Add bdl-lib.sh which provides functions to assit in debugging git
> >> shell scripts and tests.
> >
> > Interesting idea. It is Bash-only, though... (and it is not a secret
> > that I want to discourage using Unix shell scripts in Git's production
> > code, they are a decent way to prototype things, but they fall short
> > of being robust and portable in practice, and don't get me started on
> > speed issues).
> >
> > So rather than spending time on making it easier to debug shell
> > scripts, I would love to see us going into the direction of a
> > consistent C source code. I still believe that we can get there, and
> > that the benefits are worth the (huge) effort.
> 
> I totally agree the code base should use primarily one language!
Great!
> But that's not the case now and "bdl" gave me insight into the workings
> of rebase--interactive and I found little guidance on how to debug
> or learn the code base. So I thought I'd see if there was interest
> in what I'd done.

And realistically, requiring Bash is not all that much of a problem when targeting developers.

> If I were to make it non-bash specific would there be any interest?

After thinking about this more, I am a lot less opposed to including this in Git's source code. However, as it is not necessary for Git's functionality, it should probably go into contrib/, and I would much rather have a more descriptive name such as contrib/bash-debugging-library/...

Ciao, Johannes

Previous: Wink SavilleNext: Wink Saville
Message 5 of 8 in “bdl-lib.sh: add bash debug logger”
  1. 0/1 bdl-lib.sh: add bash debug loggerWink Saville, Mar 28, 2018
  2. 1/1 bdl-lib.sh: add bash debug loggerWink Saville, Mar 28, 2018
  3. Johannes SchindelinMar 30, 2018
  4. Wink SavilleMar 30, 2018
  5. Johannes SchindelinApr 5, 2018
  6. Wink SavilleApr 5, 2018
  7. Johannes SchindelinApr 5, 2018
  8. Wink SavilleApr 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.