Inconsistent Quoting #22

Open
opened 2026-02-02 15:05:31 -05:00 by jared · 0 comments
Owner

local hostname=$1 # Unquoted
local drive_width=10 # Unquoted
printf "│ %-126s │\n" "$hostname" # Quoted

Improvement: Always quote variables: local hostname="$1"

local hostname=$1 # Unquoted local drive_width=10 # Unquoted printf "│ %-126s │\n" "$hostname" # Quoted Improvement: Always quote variables: local hostname="$1"
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/driveAtlas#22