mirror of
				https://github.com/koalaman/shellcheck.git
				synced 2025-10-31 22:52:50 +08:00 
			
		
		
		
	Fixed unquoted $@ warning message.
This commit is contained in:
		| @@ -950,7 +950,7 @@ prop_checkUnquotedDollarAt8 = verifyNot checkUnquotedDollarAt "echo \"${args[@]: | |||||||
| checkUnquotedDollarAt p word@(T_NormalWord _ parts) | not $ isStrictlyQuoteFree (parentMap p) word = | checkUnquotedDollarAt p word@(T_NormalWord _ parts) | not $ isStrictlyQuoteFree (parentMap p) word = | ||||||
|     forM_ (take 1 $ filter isArrayExpansion parts) $ \x -> |     forM_ (take 1 $ filter isArrayExpansion parts) $ \x -> | ||||||
|         err (getId x) 2068 |         err (getId x) 2068 | ||||||
|             "Double quote array expansions, otherwise they're like $* and break on spaces." |             "Double quote array expansions to avoid re-splitting elements." | ||||||
| checkUnquotedDollarAt _ _ = return () | checkUnquotedDollarAt _ _ = return () | ||||||
|  |  | ||||||
| prop_checkConcatenatedDollarAt1 = verify checkConcatenatedDollarAt "echo \"foo$@\"" | prop_checkConcatenatedDollarAt1 = verify checkConcatenatedDollarAt "echo \"foo$@\"" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user