Skip to content

Commit ad65e53

Browse files
committed
Use "$@" instead of bare $@ to protect arguments
Bash expands bare $@, and then do word-splitting and file-globing. It breaks command-line arguments for arduino if command-line arguments for the wrapper script contains $IFS, '*', '?' and etc. characters. Use "$@" in this case.
1 parent ff13b30 commit ad65e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/shared/manpage.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ afterwards:
289289
#!/bin/bash
290290
Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
291291
xvfb="$!"
292-
DISPLAY=:1 arduino $@
292+
DISPLAY=:1 arduino "$@"
293293
kill -9 $xvfb
294294
295295
Save the script as *arduino-headless* and run it with the options described above.

0 commit comments

Comments
 (0)