Martin Kealey

Results 284 comments of Martin Kealey

There's a surprising difference in the behaviour of quotes between `${var:-default}` and `${var/pattern/replacement}`. The `${var:-default}` case is defined by POSIX such the quoting state propagates inwards, so that (when the...

Even worse, `${var[index]}` and `${var[@]:index:1}` are not synonyms even for assignment. It turns out that `${var:start:length}` has a surprising quirk: ```shell x=(alpha bravo charlie delta) unset 'x[1]' y="${x[1]}" z="${x[@]:1:1}" echo...

I'm a bit dubious about imposing arbitrary limits, even just as warnings. A badly written 30-line script can be far more difficult to understand than a well-written 1000-line script. Splitting...

This would be equivalent to: ```shell shellcheck filename

Yay! awk strikes again! It's a cool little language, and that's an elegant solution. I was simply offering `head` as a better-known -- and shorter -- option, particular for novice...

Please make sure that the server address is set correctly; it should be `irc.libera.chat` (the round-robin server pool), not just `libera.chat` (the webserver).

Also don't include any access scheme in the server address field; it should be just a hostname or IP address.

@Wibblyw does "unrestricted" mean in relation to power management, ie, suppressing background activity by the app to save power? Or "unrestricted" in some other way?

Android introduced yet another new scheduling framework a few years ago; implementing it is still on the roadmap, and will likely resolve this and similar issues. In the meantime, anyone...