home.social

#posixshell — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #posixshell, aggregated by home.social.

  1. Happy to announce that I just published my #PolyglotScript v2.0.0 research report for #cli #commandline #shell. It consolidates #batchfile, #PowerShell, and #POSIXShell together into 1 single file that can run anywhere, everywhere without requiring to install anything.

    Tested on #linux, #windows, and #macos. For #FreeBSD, still pending because GitHub does not officially facilitate #FreeBSD yet.

    Check it out at:

    doi.org/10.5281/zenodo.19805433

  2. #Poll: Curious about people's attitudes towards shell scripting.

    Two part question:

    1. Are you a DEVeloper (or working in a development-heavy role), OTHER-IT worker (such as a sysadmin, architect, anything in a non-development-heavy role), or NON-IT (accountant, doctor, whatever)
    2. Do you HATE shell scripting, are you INDIFferent towards (or ignorant of) shell scripting, or do you LOVE it?

    #Unix #UnixShell #ShellScript #ShellScripting #POSIX #PosixShell #sh #bash #zsh #csh #tcsh #ksh #pdksh #oksh #mksh

  3. 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