mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-08 05:51:09 -07:00
Treat $x/ or $(x)/ as ./ when finding sourced files (fixes #1998)
This commit is contained in:
parent
1b884a17ea
commit
210cdcd01a
4 changed files with 25 additions and 1 deletions
|
@ -503,6 +503,11 @@ isCommandSubstitution t = case t of
|
|||
T_Backticked {} -> True
|
||||
_ -> False
|
||||
|
||||
-- Is this an expansion that results in a simple string?
|
||||
isStringExpansion t = isCommandSubstitution t || case t of
|
||||
T_DollarArithmetic {} -> True
|
||||
T_DollarBraced {} -> not (isArrayExpansion t)
|
||||
_ -> False
|
||||
|
||||
-- Is this a T_Annotation that ignores a specific code?
|
||||
isAnnotationIgnoringCode code t =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue