Shell [Scripting] Style Guide

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pure-sh-bible

    ๐Ÿ“– A collection of pure POSIX sh alternatives to external processes.

  • `set --` before running a command can be used to remove all excess whitespace (making parsing dead easy).

    And last but not least always using printf instead of echo makes your scripts 1000x cooler :)

    0. https://github.com/dylanaraps/pure-sh-bible

  • pure-bash-bible

    ๐Ÿ“– A collection of pure bash alternatives to external processes.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ShellCheck

    ShellCheck, a static analysis tool for shell scripts

  • Following a style guideline is really important in scripts. But, having your scripts checked by ShellCheck [1] is really mandatory. Canโ€™t imagine to write any script without it.

    [1] https://www.shellcheck.net/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts