home.social

#shellcheck — Public Fediverse posts

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

  1. Github Actions: #Shellcheck schmeißt eine Fehlermeldung wegen veraltetem Nodejs. Jetzt anpassen! Sonst funktioniert im Herbst garnichts mehr.
    gist.github.com/dewomser/d7cad

  2. I just updated my current project to use both #shellcheck and #shfmt (yes, I am writing a lot of bash at the moment).

    Writing #bash like a grown-up feels weird.

    But a good weird!

  3. Github Actions beschwert sich, dass #shellcheck noch node v.20 benutzt, gefordert ist 24

    Deprecated und wird im September 26 abgeschaltet,

    im yaml ersetzt
    - uses: actions/checkout@v3
    durch
    - uses: bewuethr/shellcheck-action@v2

    Alles ist wieder gut.
    github.blog/changelog/2025-09-

  4. Wenn man Code (Bash) bei Github findet und der sieht optisch sehr gut aus.

    Einrückungen, Variablennanen, Doku usw. , trau dem nicht ! Dieser Code hatte sehr viele kaputte Zählschleifen.

    #Shellcheck:
    Modification of FAILED is local (...
    FAILED was modified in a subshell...

    Ich hab die ganze überflüssige Zählerei gelöscht und so den Code saniert und um die Hälfte gekürzt.
    My way, hacker's way funktioniert ! 😃

  5. #TIL that #DuckDuckGo has a pretty clean submission page for suggestion new !bang search shortcuts.

    Feeling so lazy today, I just submitted one for #shellcheck wiki error message(shellcheck.net/wiki/) searches(e.g. "!shck SC2067").

    duckduckgo.com/newbang

    #Search

  6. @christian_freiherr_von_wolff Just encourage people to include #ShellCheck in their build/test pipelines or IDE's and it will flag this problem as an error... and probably many others 😉

    ShellCheck, a static analysis tool for shell scripts github.com/koalaman/shellcheck

  7. :nixos: has made me like :bash: . I use it so frequently with pkgs.writeShellApplication and have accepted to use its non-POSIX "advanced" features like (associative) arrays, the [[ ]] conditional syntax, the variable string mangling magic, etc. I absolutely love how writeShellApplication automatically runs everything through and makes it easy to set runtimeInputs and runtimeEnv. I'd love for it to pass the result through though 😉

  8. Your periodic reminder that Shellcheck is awesome and should be used everywhere...

    #ShellCheck

  9. Holy crap! That 50 line , which includes child process management and signal handling, not only works, but only whines about two things, both of which I know don't matter.

  10. I'm using 's excellent GitHub workflow to produce statically linked Haskell binaries. It's curious, however, that ghc-9.0.4 produces a binary that's roughly 1MiB in size, whereas 9.4 produces a whopping 30MiB binary. Haven't tested the later ghc versions yet, but I hope they're a bit more conservative w.r.t. size...

  11. Ran #shellcheck on my thesis's #Bash part and it detected like 6 errors. Some were false positives, but one was an actual problem. I was saving the passed arguments and needed to save them and temporarily remove all of them so that a sourced script doesn't exec them and it turns out that arrays in Bash are even more cursed than I thought.
    I don't think I'm ever going to write shell scripts without shellcheck. Honestly it should be installed by default on every non-minimal #Linux distro.

    edit: To clarify, the false positives were also things to be mindful of, specifically sourcing unknown command outputs, but it was search paths from guix, so it was fine in this very specific case.

  12. Me experimenting with build scripts for bash, using
    - #shfmt - formatting
    - #shellcheck - linting
    - bats - unit testing
    - #shelldoc - for google style docstrings
    - source - library importing
    - #bashlog - basic logging
    - TODO: #bpkg - library packaging

    github.com/matthewdeanmartin/i

  13. #Bash #shellcheck
    Achso! Es gibt ja auch noch Copilot:

    Beseitige bitte alle shellcheck Warnungen und Fehler

    Bamm! . fertig, funktioniert.😃

    gist.github.com/dewomser/aa12d

  14. #Linux #Bash
    Für alle die (un)gern ihre Skripte mit #Shellcheck testen.
    Diese magische Zeile direkt unterhalb vom Shebang einbauen, hilft. 😏

    $(which shellcheck) "${0##*/}"

  15. nix running #shellcheck automatically on my pkgs.writeShellApplication is just SO AWESOME! #nixpkgs #nix

  16. God I love #nix ... runs my poor bash skills automatically through #shellcheck so I don't break my own stuff.

    ❤️ 😍

  17. Personal advent, day 5: in which I write an ode to Shellcheck, which has been an invaluable tool in helping me gain confidence with Bash:

    mwop.net/blog/2023-12-05-adven

    #bash #shellcheck

  18. @zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃

  19. @zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃

  20. @zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃

  21. @zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃

  22. @zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃