Raviteja Lokineni created HIVE-28937:
----------------------------------------

             Summary: Static Analysis fixes for shell scripts
                 Key: HIVE-28937
                 URL: https://issues.apache.org/jira/browse/HIVE-28937
             Project: Hive
          Issue Type: Bug
          Components: Hive
    Affects Versions: 4.0.1
            Reporter: Raviteja Lokineni
            Assignee: Raviteja Lokineni


Several static analysis issues were detected in the shell scripts located in 
the `packaging` folder when analyzed with ShellCheck. The identified issues are 
as follows:

1. *SC2086*: Link to [SC2086|https://github.com/koalaman/shellcheck/wiki/SC2086]
   - Issue: Double quote to prevent globbing and word splitting.

2. *SC2125*: Link to [SC2125|https://github.com/koalaman/shellcheck/wiki/SC2125]
   - Issue: Brace expansion is not supported in POSIX sh.

3. *SC2223*: Link to [SC2223|https://github.com/koalaman/shellcheck/wiki/SC2223]
   - Issue: This default assignment may cause problems when concatenating 
strings.

*Steps to Reproduce:*

1. Navigate to the `packaging` folder.
2. Run ShellCheck on the shell scripts present in the folder.
3. Observe the reported issues.

*Expected Result:*

No static analysis issues should be reported by ShellCheck.

*Actual Result:*

ShellCheck reports multiple issues as detailed above.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to