#POSIXshell

R.L. Dane :Debian: :OpenBSD: 🍵 :MiraLovesYou:rl_dane@polymaths.social
2025-04-10

Should've made this a long time ago:

function ciglob {
    #case-insensitive glob generator
    echo "$*" |while read -N1 c; do
        case "$c" in
            [a-zA-Z])   echo -n "[${c^^}${c,,}]";;
            *)          echo -n "$c"
        esac
    done
}
~ $ ciglob "Hello, world!"
[Hh][Ee][Ll][Ll][Oo], [Ww][Oo][Rr][Ll][Dd]!
~ $ ls -ld $(ciglob documents)
drwxr-xr-x 52 ~~~ ~~~ 20,480 Apr 10 11:45 Documents

(Not the most useful example, but I did have a use case in mind when I wrote it ;)

P.S. (This is a valid way to close a parenthesis. Fight me ;)

#bash #ksh #sh #shell #UnixShell #POSIX #PosixShell #ShellScripting

N-gated Hacker Newsngate
2025-03-30

🤔 Ah, the noble pursuit of reinventing the wheel with a POSIX shell in 2023! Kalua promises to turn your Wi-Fi into a reality (assuming you can navigate the labyrinthine pages without losing your mind). 🌐 And don't worry, it's equipped with all the you need to impress your local IT club. 😂
github.com/bittorf/kalua

2024-07-29

@computerfact

foo $(bar) $(baz 1)

"They made me stop using the backtick because on non-U.S.A. keyboards it is often a dead key. So I picked the U.S.A. dollar as its more international replacement."

(-:

#PowerShell #POSIXShell

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst