Treat $x/ or $(x)/ as ./ when finding sourced files (fixes #1998)

This commit is contained in:
Vidar Holen 2020-06-28 17:24:07 -07:00
parent 1b884a17ea
commit 210cdcd01a
4 changed files with 25 additions and 1 deletions

View file

@ -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 =