Joseph C. Sible
0607039d41
Simplify actualArgs
2020-12-28 17:21:47 -05:00
Joseph C. Sible
46f177b5be
Simplify parseArgs
2020-12-28 17:19:08 -05:00
Joseph C. Sible
eaccd3d02c
Simplify parser
2020-12-28 17:19:08 -05:00
Joseph C. Sible
35033a9f2f
Remove unnecessary use of Maybe from shellFor
2020-12-28 17:09:50 -05:00
Martin Bagge / brother
19355226e1
Change error 2076 to a warning.
...
Implementing the suggestion by @pixarbuff #1985 .
2020-12-27 00:27:36 +01:00
Pepe Iborra
4e7e3f9456
Add Haddock markup to SystemInterface
2020-12-22 09:15:57 +00:00
Vidar Holen
bd3299edd3
Treat 'exec $1' like '$1' for the purpose of quoting ( fixes #2068 )
2020-12-17 20:31:45 -08:00
Vidar Holen
cc3884cf9f
Support env -S/--split-string in shebangs ( fixes #2105 )
2020-12-12 20:24:32 -08:00
Vidar Holen
6ba1af0898
Warn when a variable is assigned to itself
2020-12-11 20:28:36 -08:00
Vidar Holen
8e332ce879
Improve handling of trailing tokens for []/compounds ( fixes #2091 )
2020-12-06 21:26:24 -08:00
Vidar Holen
7e40d97e7a
Merge pull request #1857 from lukelbd/conda-install-instructions
...
Add conda install instructions
2020-12-05 20:35:20 -08:00
Vidar Holen
775c0c11d7
Merge pull request #1899 from ArturKlauser/simplify-prepare-deploy
...
Simplify .prepare-deploy
2020-12-05 20:19:16 -08:00
Vidar Holen
5196ab1f95
Merge pull request #2097 from ylluminarious/patch-1
...
Add MacPorts as installation option in README.md
2020-12-05 20:14:46 -08:00
Vidar Holen
b625562d60
Add POSIX checks for more Bash-specific variables ( fixes #2093 )
2020-12-05 20:11:12 -08:00
George Plymale II
18e80284ec
add macports as installation option in README.md
2020-12-01 16:15:22 -05:00
Vidar Holen
65044c2568
SC2095: Also warn if the command is backgrounded
2020-11-29 13:01:23 -08:00
Vidar Holen
61b7dd610d
Merge pull request #2077 from keith/ks/readonly-masking
...
Add readonly to SC2155
2020-11-13 17:38:43 -08:00
Artur Klauser
4b0e5ca119
Simplify .prepare-deploy
...
Reduce amount of duplicated code.
2020-11-12 20:02:31 -08:00
Keith Smiley
619662adb6
Add readonly to SC2155
...
This adds a warning for readonly masking the return value of function.
This is mentioned in the wiki
https://github.com/koalaman/shellcheck/wiki/SC2155#problematic-code-in-the-case-of-readonly
but didn't actually produce a warning.
Fixes https://github.com/koalaman/shellcheck/issues/1336
2020-10-23 17:29:04 -07:00
Vidar Holen
28d3279ba6
Optional style warning about [ x$var = xval ]
2020-10-19 20:04:58 -07:00
Vidar Holen
256457c47a
Use getopts parser to find 'read' arrays ( fixes #2073 )
2020-10-18 22:57:16 -07:00
Vidar Holen
3104cec770
SC2267: Warn about xargs -i ( fixes #2058 )
2020-10-18 22:10:14 -07:00
Vidar Holen
f100c2939e
Rewrite getopts style option parser
2020-10-18 21:34:58 -07:00
Vidar Holen
8d99926554
Recognize `local -x` similarly to `export` ( fixes #2069 )
2020-10-18 15:15:31 -07:00
Vidar Holen
218deb6d01
Update SC2091/SC2092 message and ignore in quotes.
2020-09-08 19:30:13 -07:00
Vidar Holen
c4cc2debb7
Improve compatibility checks
2020-09-07 21:05:49 -07:00
Vidar Holen
cfd68ee0c2
Give each sh/dash compatibility warning its own SC3xxx error code
2020-09-01 16:48:14 -07:00
Vidar Holen
58783ab3cc
Allow specifying ranges in disable directives
2020-09-01 16:22:15 -07:00
Vidar Holen
43191fa71d
Suppress SC2035 for echo * and printf * ( fixes #2036 )
2020-09-01 14:19:28 -07:00
Vidar Holen
c9be7ab2eb
Parse assignments according to spec ( fixes #2022 )
2020-08-23 18:46:13 -07:00
Vidar Holen
fb89cdf4ad
Merge pull request #2042 from sshine/patch-1
...
Fix whitespace in README.md
2020-08-23 15:57:57 -07:00
Vidar Holen
9e59bcca91
Upgrade SC2169 (unsupported in dash) from warning to error ( fixes #2013 )
2020-08-23 15:49:20 -07:00
Vidar Holen
a62d9f10c2
Warn when using &/| between test statements
2020-08-23 15:43:33 -07:00
Simon Shine
e72fbb2640
Fix whitespace in README.md
2020-08-20 13:07:32 +02:00
Vidar Holen
17e591233f
Merge branch 'donnerpeter-supportMinusNZ'
2020-08-08 15:02:07 -07:00
Vidar Holen
50067ddf94
Consider variables in -z/-n tests to be checked
2020-08-08 12:32:20 -07:00
Vidar Holen
3fa5b7d3bd
Merge branch 'supportMinusNZ' of https://github.com/donnerpeter/shellcheck into donnerpeter-supportMinusNZ
2020-08-08 11:22:00 -07:00
Vidar Holen
5e6d50f493
Merge branch 'Gandalf--issue_1759_mapfile_proc_substition'
2020-08-07 16:41:52 -07:00
Vidar Holen
e779aedac3
Modernize getting mapfile array name
2020-08-07 16:41:18 -07:00
Vidar Holen
3ef1175566
Merge branch 'issue_1759_mapfile_proc_substition' of https://github.com/Gandalf-/shellcheck into Gandalf--issue_1759_mapfile_proc_substition
2020-08-07 15:57:59 -07:00
Vidar Holen
506ffa849b
Merge branch 'glenjamin-patch-1'
2020-08-07 15:24:45 -07:00
Vidar Holen
b864242caa
Merge branch 'patch-1' of https://github.com/glenjamin/shellcheck into glenjamin-patch-1
2020-08-07 15:24:36 -07:00
Vidar Holen
3e50a2fce8
Suppress SC2216 for du --files0-from or --exclude-from ( fixes #1286 )
2020-08-07 14:59:34 -07:00
Vidar Holen
10c2d827fa
Merge pull request #2028 from Lin-Buo-Ren/github-issue-1643
...
Fix snap distribution unable to process scripts in Unicode(Chinese) (fixes #1643 )
2020-08-07 11:35:50 -07:00
Vidar Holen
e0e2edd525
Merge pull request #2031 from umanwizard/patch-1
...
Update README.md
2020-08-07 11:34:36 -07:00
Brennan Vincent
c5b6d6f027
Update README.md
...
Minor typographical fixes ("macOS" everywhere, capitalize Homebrew)
2020-08-05 10:50:14 -04:00
林博仁(Buo-ren, Lin)
beee9b22ca
Fix snap distribution unable to process scripts in Unicode(Chinese) ( fixes #1643 )
...
The snap runtime only supports C.UTF-8 locale, as other locales don't seem to be used now just hardcode it.
Fixes #1643 .
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
2020-08-03 11:46:20 +08:00
Vidar Holen
1ac2c31728
Warn when shell functions blatantly recurse ( fixes #1994 )
2020-07-27 21:50:33 -07:00
Vidar Holen
cc81bdee31
Improve SC1033/SC1034 message
2020-07-27 18:44:07 -07:00
Vidar Holen
34885142e7
Handle tilde expansion in pattern matching ( fixes #1769 )
2020-07-27 18:34:42 -07:00