awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
mvdan avatar

mvdan/sh

0
View on GitHub↗
8,825 stars·414 forks·Go·BSD-3-Clause·94 viewspkg.go.dev/mvdan.cc/sh/v3↗

Sh

This project is a POSIX shell toolset providing utilities for parsing, formatting, interpreting, and validating shell scripts. It includes a parser that converts Bash and Zsh source code into structured syntax trees, a formatter for standardizing script layout, and a runtime interpreter for executing shell commands and script logic.

The toolset supports dialect-aware parsing to handle multiple shell language specifications. It provides capabilities for static analysis, allowing shell source code to be converted into structured data for external manipulation or validation against specific dialect rules.

Additional capabilities include resolving variable and glob expansions, verifying UTF-8 encoding, and scanning directory hierarchies to discover shell script files. The system can also serialize internal syntax trees to and from typed JSON for state restoration and external analysis.

Features

  • Parsers - Provides a dialect-aware parser that converts Bash and Zsh source code into structured syntax trees for static analysis.
  • POSIX Shell Utilities - Provides a comprehensive toolset of utilities for validating, expanding, and manipulating POSIX shell scripts.
  • Code Formatting and Style - Standardizes the layout and style of shell scripts by reconstructing source code from a syntax tree.
  • Script Formatters - Standardizes the layout and style of shell scripts to ensure consistent code formatting.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
Shell Script Parsers - Converts Bash and Zsh source code into structured syntax trees for static analysis.
  • Shell Scripting Linters - Converts shell source code into structured data for static analysis and logic manipulation.
  • Shell Scripting Tools - Standardizes the layout of shell scripts using consistent style rules to improve readability.
  • Script Execution Environments - Provides a runtime environment that executes shell script logic by traversing parsed representations.
  • Shell Script Runtimes - Executes shell commands and evaluates script logic within a custom programmable runtime environment.
  • Abstract Syntax Tree Parsing - Converts raw shell source code into structured abstract syntax trees for analysis and manipulation across dialects.
  • Dialect-Aware Parsers - Implements parsing logic that adapts to specific Bash and Zsh language specifications.
  • Syntax Validation Linters - Checks shell scripts for syntax errors and UTF-8 encoding issues before execution.
  • Shell Script Validators - Implements static parsing to detect syntax errors and verify UTF-8 encoding in shell scripts.
  • Shell-Native Substitutions - Resolves variables and glob patterns within strings according to standard shell rules.
  • Glob Expansion Control - Resolves dynamic string patterns and glob wildcards into literal values using shell-specific expansion rules.
  • Compilers and Interpreters - Shell script parser and formatter.
  • Shell Script Development - Formatter for cleaning up and standardizing shell code.
  • Text Processing - Shell script parsing and formatting library.
  • Star history

    Star history chart for mvdan/shStar history chart for mvdan/sh

    How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

    Frequently asked questions

    What does mvdan/sh do?

    This project is a POSIX shell toolset providing utilities for parsing, formatting, interpreting, and validating shell scripts. It includes a parser that converts Bash and Zsh source code into structured syntax trees, a formatter for standardizing script layout, and a runtime interpreter for executing shell commands and script logic.

    What are the main features of mvdan/sh?

    The main features of mvdan/sh are: Parsers, POSIX Shell Utilities, Code Formatting and Style, Script Formatters, Shell Script Parsers, Shell Scripting Linters, Shell Scripting Tools, Script Execution Environments.

    Which projects share features with mvdan/sh?

    Projects with overlapping indexed features include: oils-for-unix/oils — Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and… anordal/shellharden — Shellharden is a shell script hardening tool and linter designed to improve the security and reliability of Bash… dylanaraps/pure-sh-bible — This project is a collection of POSIX-compliant shell functions and polyfills designed to replace external binaries… raywenderlich/swift-style-guide — This project is a collection of Swift coding standards and static analysis rules designed to ensure consistency across… lukasmartinelli/hadolint — Hadolint is a Dockerfile linter and Haskell-based static analysis tool. It analyzes container image configuration… rhysd/actionlint — actionlint is a static analysis tool and linter specifically designed for GitHub Actions workflow files. It functions…

    Projects sharing features with Sh

    These projects share indexed features with Sh. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
    • oils-for-unix/oilsoils-for-unix avatar

      oils-for-unix/oils

      3,288View on GitHub↗

      Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and Bash compatibility. It functions as a structured data shell, integrating JSON and J8 formats to manage complex data without relying on string parsing. The system is distinguished by a C++ transpiled interpreter that converts a subset of Python source code into strongly typed C++ for high-performance execution. It features a garbage-collected typed runtime that supports prototype-based polymorphism, lexical closures, and reference-based variable mutation. To decouple shell logic

      Python
      View on GitHub↗3,288
    • anordal/shellhardenanordal avatar

      anordal/shellharden

      4,803View on GitHub↗

      Shellharden is a shell script hardening tool and linter designed to improve the security and reliability of Bash scripts. It functions as an automated utility that rewrites scripts to follow industry standards for quoting and security practices. The project provides an optimizer and standardizer that replaces unsafe patterns and aliases with safer functional equivalents. It includes a syntax highlighter that uses visual markers and colorization to indicate vulnerabilities and areas where quoting corrections are required. The tool covers a broad range of capabilities including automated safet

      Rust
      View on GitHub↗4,803
    • dylanaraps/pure-sh-bibledylanaraps avatar

      dylanaraps/pure-sh-bible

      7,709View on GitHub↗

      This project is a collection of POSIX-compliant shell functions and polyfills designed to replace external binaries with portable, built-in utility implementations. It serves as a compatibility library and utility kit for shell scripting, providing shell-native alternatives to common command line utilities. The library focuses on removing dependencies on external processes by implementing tasks directly within the shell. This includes the use of shell-native sequences for terminal user interface design, such as text coloring and cursor movement, and the use of built-in pattern matching for te

      Shell
      View on GitHub↗7,709
    • lukasmartinelli/hadolintlukasmartinelli avatar

      lukasmartinelli/hadolint

      12,225View on GitHub↗

      Hadolint is a Dockerfile linter and Haskell-based static analysis tool. It analyzes container image configuration files against a set of rules to ensure valid syntax and adherence to best practices. The tool functions as a wrapper for shell checkers to inspect inline shell commands and scripts within build instructions, identifying scripting errors and bugs. It also includes security auditing capabilities to warn when images are pulled from registries not explicitly listed as trusted. The analysis engine covers quality assurance through label schema validation, syntax pattern verification, a

      Haskell
      View on GitHub↗12,225
    Compare all 30 related projects→