Page MenuHomeFreeBSD

Fix some shell issues by adding quotes in fwget.sh
ClosedPublic

Authored by bcr on Jun 19 2023, 9:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 22, 11:24 PM
Unknown Object (File)
Mon, Sep 22, 7:46 AM
Unknown Object (File)
Sep 2 2025, 2:16 AM
Unknown Object (File)
Aug 30 2025, 4:37 PM
Unknown Object (File)
Aug 28 2025, 8:04 AM
Unknown Object (File)
Aug 25 2025, 5:28 AM
Unknown Object (File)
Aug 11 2025, 4:20 AM
Unknown Object (File)
Jul 28 2025, 2:26 AM
Subscribers

Details

Summary

This patch fixes the following issues in the shell script:

  • Quote default assignments, see SC2223
  • Use $() instead of backticks, see SC2006
  • Double quote $@, see SC2068
  • Double quote variables in if-statements and other places, see SC2086

While here, fix a whitespace at end of line instance in the license text.

Test Plan
  1. Apply the patch to /usr.sbin/fwget
  2. Run fwget to see if it still works

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable