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
20082026
-
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 -
▲ 35
Safe ways to do things in bash (2023)story by gautamsomani · 2026-03-31 · 1 comment
-
https://github.com/anordal/shellharden/blob/master/how_to_do...
comment by mcc1ane · 2026-01-15 · in Test your square brackets -
Complementary - https://github.com/anordal/shellharden/blob/master/how_to_do...
comment by mcc1ane · 2024-06-28 · in Advanced Bash-Scripting Guide -
…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 -
…of mine. It is basically shellcheck but it applies the suggested changes automatically. 0: https://github.com/anordal/shellharden
comment by RMPR · 2023-11-28 · in Shellcheck finds bugs in your shell scripts -
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:…
comment by asicsp · 2022-10-27 · in Shell script best practices, from a decade of scripting things -
…somewhat disapproving for GPLv3 tools, but MPL that shellharden uses is essentially auto-approved. https://github.com/anordal/shellharden
comment by placatedmayhem · 2022-10-07 · in Why doesn't Bash’s ‘set -e’ do what I expected? (2021) -
…* 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 -
…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 -
…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:…
comment by pabs3 · 2021-05-03 · in ShellCheck: Finds bugs in your shell scripts -
▲ 173
How to do things safely in Bash (2018)story by soheilpro · 2021-04-03 · 93 comments
-
…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:…
comment by pabs3 · 2021-03-19 · in ShellCheck: A static analysis tool for shell scripts -
…similar called shellharden. It pitches it's advantage as being able to auto apply the changes. https://github.com/anordal/shellharden
comment by tyingq · 2021-03-18 · in ShellCheck: A static analysis tool for shell scripts -
…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 -
…* 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 -
…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 -
▲ 4
Safe ways to do things in bashstory by dmckeon · 2020-09-04 · 0 comments
-
…(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) -
…/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 -
▲ 892
Safe ways to do things in bashstory by signa11 · 2018-05-13 · 240 comments