soc.octade.net is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
𝗕𝗮𝘀𝗵 𝗴𝘂𝗶𝗱𝗲:
https://thewhale.cc/posts/bash-guide
A guide to learn bash: basic operations, basic shell programming, tricks and debugging.
ne7 boostedIn 2008 I wrote a networking utility program for Linux. It's still maintained and used. Take the first letter of every sentence in its (rather long) man page and it spells "Never gonna give you up" etc etc. Nobody has ever mentioned it.
WHAT THE FLUFF, did I seriously just write a (dead-simple) #uxntal syntax highlighting script in #bash?!? 😂
https://codeberg.org/rldane/scripts/src/branch/main/tallight
All it does right now is put comments in blue and UPPERCASE strings of three or more characters in bold using tput.
I started writing it in #POSIX script, but POSIX's read doesn't have a way to read a character at a time. ;)
Just FYI, on this ten-year-old thinkpad, it took 16 seconds to process a 639KiB (concatenated-together) source code file. So it'll probably be decent enough for most purposes.
#Perl would've been better, but I'm quite rusty at it. ☺️
#uxn #tal #scripting #shell #ShellScript #ShellScripts #ShellScripting #YakShaving
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Well, I wanted to regret using #bash for ebuilds, but I guess that's not really the problem in this case.
#TIL that bash has this default of `shopt -s checkwinsize` that means it automatically sets COLUMNS and ROWS to the terminal size. If you start a new shell, it inherits these variables from the parent, along with the export bit, but as soon as the first external command is executed, it resets the value to the actual terminal size.
So if an ebuild does:
src_test() {
local -x COLUMNS=80
emake check
}
Then each shell started by make(1) will have "COLUMNS=80" exported at first, but as soon as another command is executed, it will magically start exporting a different value. What's really absurd about it, if we didn't export COLUMNS override, these shells won't be exporting the variable in the first place.
This is just batshit insane.
https://bugs.gentoo.org/984547
Thanks to Serhiy Storchaka for bringing my attention to the problem.
𝗕𝗮𝘀𝗵 𝗴𝘂𝗶𝗱𝗲:
https://thewhale.cc/posts/bash-guide
A guide to learn bash: basic operations, basic shell programming, tricks and debugging.
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
𝗕𝗮𝘀𝗵 𝗴𝘂𝗶𝗱𝗲:
https://thewhale.cc/posts/bash-guide
A guide to learn bash: basic operations, basic shell programming, tricks and debugging.
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
Assigning your copyright to the FSF helps defend the GPL and keep software free. Thank you Léa Gris for assigning your copyright to the FSF! More at: https://u.fsf.org/4co #GNU #Bash #CopyrightAssignments
So I DO love me some python, but I just want to say that #Bash is awesome.
I had no idea this was a thing:
echo "${variable/$inTheString/$replacesIt}"