home.social

#posixshell — Public Fediverse posts

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

fetched live
  1. After a hiatus (life got in the way), the BetterScripts POSIX Suite has a major update and a marginally less awful name: shtoolkit.

    - What: A library of tools for POSIX-compliant shells.
    - Why: Existing shell libraries tend to trade off portability, scope, or documentation quality.
    - Where: github.com/BetterScripts/shtoo

    Not every project needs this - but if you write portable shell scripts, it might save you some reinvention.

    #shell #unix #posix #posixshell #foss

  2. After a hiatus (life got in the way), the BetterScripts POSIX Suite has a major update and a marginally less awful name: shtoolkit.

    - _What:_ A library of tools for POSIX-compliant shells.
    - _Why:_ Existing shell libraries tend to trade off portability, scope, or documentation quality.
    - _Where:_ github.com/BetterScripts/shtoo

    Not every project needs this - but if you write portable shell scripts, it might save you some reinvention.

    #shell #posixshell #foss

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

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

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

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

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

  8. #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

  9. #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

  10. #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

  11. #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

  12. #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

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

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

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

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

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

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

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

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

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

  22. I have figured out what's going on. My mental model was "processes launched by a shell inherit the file-descriptors of that shell", which is NOT TRUE. The *real* model is "processes launched by a shell inherit the file-descriptors of that shell, except when the process is launched from a non-interactive shell with the background operator (&), in which case the process' stdin is set to /dev/null".

    #posixshell