Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Backend/test/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ test_shutdown() {
assert_contains "$calls" "ip link show wlan0"
}

test_shutdown
demo_shellcheck_break() {
local name="Sprint 7"
echo "$name"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using echo to print variable content can be unreliable. It can misinterpret values that look like options (e.g., -n) and handle backslash escape sequences inconsistently across different shell implementations. For printing arbitrary data, printf is a safer and more portable alternative.

Suggested change
echo "$name"
printf "%s\n" "$name"

}

test_shutdown
demo_shellcheck_break
Loading