mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-01 09:19:20 +08:00
Treat 'exec $1' like '$1' for the purpose of quoting (fixes #2068)
This commit is contained in:
@@ -422,6 +422,7 @@ getCommandNameAndToken direct t = fromMaybe (Nothing, t) $ do
|
||||
"busybox" -> firstArg
|
||||
"builtin" -> firstArg
|
||||
"command" -> firstArg
|
||||
"run" -> firstArg -- Used by bats
|
||||
"exec" -> do
|
||||
opts <- getBsdOpts "cla:" args
|
||||
(_, (t, _)) <- listToMaybe $ filter (null . fst) opts
|
||||
|
Reference in New Issue
Block a user