shh
strictbash
shh | strictbash | |
---|---|---|
6 | 2 | |
261 | 6 | |
- | - | |
5.1 | 0.0 | |
5 months ago | over 1 year ago | |
Haskell | Nix | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shh
-
Shh: Simple Shell Scripting from Haskell
shh is a really cool package, and so is turtle and shelly:
https://hackage.haskell.org/package/turtle/docs/Turtle-Tutor...
https://hackage.haskell.org/package/shelly
shh's "Alternatives" section summarises nicely some of the differences between these:
https://github.com/luke-clifton/shh#alternatives
shh has a neat [fmt| ... |] macro that gets you around escaping strings.
shh generally has more Template Haskell support; you may or may not like this.
I am personally leaning towards shh because of its "native pipe style".
- Shellcheck finds bugs in your shell scripts
-
What are the disadvantages of using an interactive shell based on a regular programming language (python, scheme's scsh, etc) vs. bourne shell and bash?
There exist hybrids, where general purpose languages are somehow coerced into shells by adding syntactic sugar or removing features. Xonsh and shh come to mind, respectively for Python and Haskell.
strictbash
-
Shellcheck finds bugs in your shell scripts
Shellcheck is a godsend
https://github.com/jamespwilliams/strictbash, I wrote this little wrapper a while back that you can use as a shebang for scripts. It runs shellcheck for you before the script executes, so it’s not possible to run the script at all if there are failures. It also sets all the bash “strict mode” [0] flags.
[0] http://redsymbol.net/articles/unofficial-bash-strict-mode/
- Show HN: Strictbash – enable Bash “strict mode” & run shellcheck via a shebang
What are some alternatives?
bach - Bach Testing Framework
fs_playground - F# Playground
ShellCheck - ShellCheck, a static analysis tool for shell scripts
dagger - Application Delivery as Code that Runs Anywhere
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
shellcheck-gitlab-ci-scripts-hook
clutch - Run Swift scripts that depend on packages
zx - A tool for writing better scripts
Shwift - Shell scripting in Swift
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
nushell - A new type of shell