Hacker GitHub

← All repos

anordal/shellharden

View on GitHub ↗ ★ 4,807 Rust

The corrective bash syntax highlighter

21 mentions on Hacker News by 15 people: 4 stories, 17 comments · first 2018-05-13 · latest 2026-07-26

Mentions per year 21 mentions · busiest year 2020 (5)
20082026
  1. https://github.com/anordal/shellharden/blob/master/how_to_do...
    comment by mcc1ane · 2026-07-26 · in A shell colon does nothing. Use it anyway
  2. ▲ 35
    Safe ways to do things in bash (2023)
    story by gautamsomani · 2026-03-31 · 1 comment
  3. https://github.com/anordal/shellharden/blob/master/how_to_do...
    comment by mcc1ane · 2026-01-15 · in Test your square brackets
  4. Complementary - https://github.com/anordal/shellharden/blob/master/how_to_do...
    comment by mcc1ane · 2024-06-28 · in Advanced Bash-Scripting Guide
  5. …set -u (or set -o nounset)? https://mywiki.wooledge.org/BashFAQ/112 Safe ways to do things in bash https://github.com/anordal/shellharden/blob/master/how_to_do... Better Bash Scripting in 15 Minutes https://robertmuth.blogspot.com/2012/08/b…
    comment by asicsp · 2024-03-02 · in Bash Debugging
  6. …of mine. It is basically shellcheck but it applies the suggested changes automatically. 0: https://github.com/anordal/shellharden
  7. See also: * safe ways to do things in bash: https://github.com/anordal/shellharden/blob/master/how_to_do... * better scripting: https://robertmuth.blogspot.in/2012/08/better-bash-scripting... * robust scripting:…
  8. …somewhat disapproving for GPLv3 tools, but MPL that shellharden uses is essentially auto-approved. https://github.com/anordal/shellharden
  9. …* Bash FAQ: https://mywiki.wooledge.org/BashFAQ * safe ways to do things in bash: https://github.com/anordal/shellharden/blob/master/how_to_do... * better scripting: https://robertmuth.blogspot.in/2012/08/better-bash-scripting... * robust s
    comment by asicsp · 2022-02-17 · in Bash Pitfalls
  10. …plus shellharden², and gets just worse when things run in parallel. ¹ https://www.shellcheck.net/ ² https://github.com/anordal/shellharden
    comment by Klasiaster · 2021-10-23 · in Nsh: A fish/bash-like Posix shell in Rust
  11. …https://github.com/colis-anr/lintshell Shellharden helps rewrite scripts for ShellCheck compliance: https://github.com/anordal/shellharden/ shfmt is gofmt for shell: https://github.com/mvdan/sh ShellScriptFormatter is another formatter:…
  12. ▲ 173
    How to do things safely in Bash (2018)
    story by soheilpro · 2021-04-03 · 93 comments
  13. …https://github.com/colis-anr/lintshell Shellharden helps rewrite scripts for ShellCheck compliance: https://github.com/anordal/shellharden/ shfmt is gofmt for shell: https://github.com/mvdan/sh ShellScriptFormatter is another formatter:…
  14. …similar called shellharden. It pitches it's advantage as being able to auto apply the changes. https://github.com/anordal/shellharden
  15. …Variables https://zwischenzugs.com/2019/05/11/seven-surprising-bash-va... - anordal/shellharden https://github.com/anordal/shellharden/blob/master/how_to_do... - barryclark/bashstrap https://github.com/barryclark/bashstrap - BashPitfalls :…
    comment by nikisweeting · 2020-09-08 · in Bash Pitfalls
  16. …* BashFAQ - https://mywiki.wooledge.org/BashFAQ * shellharden: safe ways to do things in bash - https://github.com/anordal/shellharden/blob/master/how_to_do... * Security implications of forgetting to quote a variable in bash/POSIX shells…
    comment by asicsp · 2020-09-08 · in Bash Pitfalls
  17. …and unreliable. That's why I'm trying to use rust [2] for shell scripting like tasks nowadays. [1] https://github.com/anordal/shellharden/blob/master/how_to_do... [2] https://github.com/rust-shell-script/rust_cmd_lib
    comment by rustshellscript · 2020-09-07 · in Bash Pitfalls
  18. ▲ 4
    Safe ways to do things in bash
    story by dmckeon · 2020-09-04 · 0 comments
  19. …(anything that has to deal with arguments to commands is already non-trivial to get right). [0] https://github.com/anordal/shellharden/blob/master/how_to_do...
    comment by ulrikrasmussen · 2020-01-12 · in Bash $* and $@ (2017)
  20. …/tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_02.htm... * read about safe ways to do things in bash https://github.com/anordal/shellharden/blob/master/how_to_do... * this is pretty helpful writeup of general CLI usage, yet not bash…
    comment by dvdgsng · 2019-01-08 · in Bash 5.0 released
  21. ▲ 892
    Safe ways to do things in bash
    story by signa11 · 2018-05-13 · 240 comments