Andrew

Results 882 issues of Andrew

For large projects with many shell and non-shell files, it can be difficult to find the right syntax to get shlint to lint all shell scripts, that is, *just* the...

`[ ... -o ... ]` seems to be in POSIX sh, so it's not actually a bashism http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html

I like how shlint runs `checkbashisms` when available. Could shlint also run [ShellCheck](http://www.shellcheck.net/) when available? It's a pretty good linter, written in Haskell.

When I run shlint over my `scripts/` folder, it erroneously reports: ``` $ shlint scripts/ checkbashisms -n -p bin/* script scripts/ehrlich.bat does not appear to have a #! interpreter line;...

MS-DOS .bat files do not allow shebangs; please skip such warnings for `.bat` files. ``` $ cat test.bat echo howdy $ checkbashisms test.bat script test.bat does not appear to have...

Trace: ``` /Users/andrew/.rvm/gems/ruby-2.0.0-p247/bin/checkbashisms --version This is checkbashisms, from the Debian devscripts package, version ###VERSION### $ /usr/local/Cellar/checkbashisms/2.13.4/bin/checkbashisms --version This is checkbashisms, from the Debian devscripts package, version 2.13.4ubuntu1 This code is...

E.g., if `fizzbuzz` has a shebang like `#!...zsh`, then `checkbashisms` should skip that file. Related to https://github.com/duggan/shlint/issues/3.

I've been bitten a few times by trying to use tildes in my scripts, especially when setting my PATH variable. When GNU make tries to find executables, it fails to...

Though checkbashisms does not report this, I believe `source` is a bashism; POSIX sh (and even modern descendants like ash/dash) only recognizes the dot (`.`) command. In the future, could...

"Double" quotes may add a certain amount of complexity / slowdown, such as interpolation and escape characters. 'Single' quotes are preferred for simple strings.