Notice: I'm moving to @yyp so please unfollow me there and follow yyp instead.

@metalune No, I'm on Artix right now and pkg_add is my in-house AUR helper. On Alpine you would do `doas apk add tut`

@metalune I just did `pkg_add tut` and I'm writing this reply from there.

Next time you need to add a newline to a string in shell script, don't use \n. It emits two literal characters: '\' and 'n' (at least in dash).

Instead, you can write a newline in a string directly or use it as a variable for cleaner code:

CR="
"

Github is amazing

<yyp> I can't even read the changes because of this Clippy stuff going on that there's no way to disable
<yyp> Much better: patch-diff.githubusercontent.c

My experiment of writing an IRC client in shell scripts kind of failed.

The biggest issue is storage of command parameters. Arrays can't be used as this is not POSIX, $IFS doesn't work with cut and using \n as a separator failed too.

At that point I was ready to finish the TUI but this params issue was the blocker for later actions.

If anyone knows how to implement this better, please let me know

I don't know why but writing something serious in shell scripts feels like writing code in C. And I quite like the experience so far

Nobody:
Me: it's time to write another IRC client!
After ten minutes: what am I doing with my life?

@metalune I've heard there's much simpler version of toot named tut (no link, lazy to find)

@sotolf He does and he wants Rust to be a somewhat good language. It's not typical "Rust bad, write in C" thing

> To the Rust team: it’s time to calm down. Slow down the language, write a specification, focus on improving your tier 2 and tier 3 targets, expand to more platforms, and work on performance, stability, and accessibility. Invest more in third-party implementations like rust-gcc.

@janriemer

Show older
Mastodon

This is a brand new server run by the main developers of the project as a spin-off of mastodon.social 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!