www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] do we have lint for bash?

reply Kagamin <spam here.lot> writes:
https://abload.de/img/tmpliy6q.png
Apr 23
parent reply cym13 <cpicard openmailbox.org> writes:
On Sunday, 23 April 2017 at 09:51:36 UTC, Kagamin wrote:
 https://abload.de/img/tmpliy6q.png
I guess you're looking for something like http://www.shellcheck.net/ However I don't see how an automated tool could have found the error in your screenshot as passing multiple arguments to rm is a perfectly reasonnable thing. Maybe it could have suggested to put quotes which would have helped though. It's too peculiar to be expected from a generic tool though IMHO.
Apr 23
parent Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Sunday, 23 April 2017 at 10:07:30 UTC, cym13 wrote:
 On Sunday, 23 April 2017 at 09:51:36 UTC, Kagamin wrote:
 https://abload.de/img/tmpliy6q.png
I guess you're looking for something like http://www.shellcheck.net/ However I don't see how an automated tool could have found the error in your screenshot as passing multiple arguments to rm is a perfectly reasonnable thing. Maybe it could have suggested to put quotes which would have helped though. It's too peculiar to be expected from a generic tool though IMHO.
ShellCheck does catch that. https://github.com/koalaman/shellcheck/wiki/SC2114
Apr 23