diff --git a/SC2034.md b/SC2034.md index 60263f2..ce8b777 100644 --- a/SC2034.md +++ b/SC2034.md @@ -53,10 +53,17 @@ read _ last _ zip _ _ <<< "$str" echo "$last, $zip" ``` -or if you prefer to keep the names, use a directive to disable the warning: +Or optionally as a prefix for dummy variables (ShellCheck >0.7.2). + +``` ​ +read _first last _email zip _lat _lng <<< "$str" +echo "$last, $zip" +``` + +For versions <= 0.7.2, the message can optionally be [[ignore]]d with a directive: ```sh # shellcheck disable=SC2034 # Unused variables left for readability read first last email zip lat lng <<< "$str" echo "$last, $zip" -``` \ No newline at end of file +`` \ No newline at end of file