Re:Bash functions are better than I thought
by pletnes on Sunday October 31, 2021 @03:32PM
(#29059656)
Shellcheck is great and is a standalone cli program, as well as a website if you don’t want to install it locally.
https://www.shellcheck.net/
[ Parent
| on HN ]
Re:Bash functions are better than I thought
by lazyweb on Sunday October 31, 2021 @03:54PM
(#29059843)
I'd rather always check my code locally if the alternative is pasting it into a random web from.
On the other hand, I wonder if the web page keeps track and could offer "best of bash mistakes".
Re:Bash functions are better than I thought
by felipelemos on Sunday October 31, 2021 @09:47PM
(#29062294)
Well, you can.
From the website itself:
"ShellCheck is...
* GPLv3: free as in freedom
* available on GitHub (as is this website)
* already packaged for your distro or package manager
* supported as an integrated linter in major editors
* available in CodeClimate, Codacy and CodeFactor to auto-check your GitHub repo
* written in Haskell, if you're into that sort of thing. "
Sometimes you are not in your computer, the script does not have private information (i.e. open source or something you don't care to be public). Sometimes the website is simply more convenient.
*edit: formatting
Re:Bash functions are better than I thought
by naniwaduni on Sunday October 31, 2021 @05:31PM
(#29060654)
A random web form can exfiltrate the data you paste into it (and whatever your browser lets it gather). A local program can exfiltrate ... approximately everything of value on the machine?
Re:Bash functions are better than I thought
by dotancohen on Monday November 01, 2021 @03:15AM
(#29063841)
That's why Linux users typically install things from their distro's package manager. The bar to get malicious software in there is very very high (though it is not impossible).
But if you're still using Windows, then yes, I agree.