Skip to content

Commit 563e984

Browse files
Copilotdotysan
andauthored
Add clarifying comment for PS0 in commonlyQuoted list
Agent-Logs-Url: https://github.com/dotysan/shellcheck/sessions/90f001fb-db77-4304-9af4-a819f4d48f85 Co-authored-by: dotysan <5060170+dotysan@users.noreply.github.com>
1 parent ce751fe commit 563e984

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ShellCheck/Analytics.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ checkSingleQuotedVariables params t@(T_SingleQuoted id s) =
11471147
|| "perl" `isPrefixOf` commandName
11481148
|| isConcatenatedWithExpansion
11491149

1150-
commonlyQuoted = ["PS0", "PS1", "PS2", "PS3", "PS4", "PROMPT_COMMAND"]
1150+
commonlyQuoted = ["PS0", "PS1", "PS2", "PS3", "PS4", "PROMPT_COMMAND"] -- PS0 is bash 4.4+
11511151
isOkAssignment t =
11521152
case t of
11531153
T_Assignment _ _ name _ _ -> name `elem` commonlyQuoted

0 commit comments

Comments
 (0)