bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String substitution bug


From: Mike Jonkmans
Subject: Re: String substitution bug
Date: Tue, 26 Nov 2024 10:57:24 +0100

On Tue, Nov 26, 2024 at 12:47:48PM +1000, Martin D Kealey wrote:
...

> The problem is that the Shell makes it hard to write good code and easy to
> write bad code.
> 
> (“No programmer would ever be lazy.” Yeah, right. I ran a tutorial on Bash
> at the 2015 LCA in Auckland, and was abashed (pun intended) to be informed
> that one of my example scripts didn't run correctly on some of the
> delegates' systems, and it turned out that I'd missed some quotes. Nobody
> is completely immune to this.)

For info (pun intended):

https://www.shellcheck.net/ may be of help.

> You can always contribute to https://mywiki.wooledge.org/
> Thanks for the reminder; I've been meaning to do that.

In the 'good old days', somewehere in the 80's, there was a
program named 'learn'.
You would get (Bourne) shell scripting problems to solve
in a restricted cli-environment.
It was nice when starting to learn scripting.
Unfortunately it has gone off the radar.

This comes close: https://www.learnshell.org/

-- 
Regards, Mike Jonkmans



reply via email to

[Prev in Thread] Current Thread [Next in Thread]