Skip to content

Commit

Permalink
Merge pull request #3329 from BsAtHome/fix_halcommand-wordsplit
Browse files Browse the repository at this point in the history
Undo quoting of HALCOMMAND
  • Loading branch information
BsAtHome authored Feb 7, 2025
2 parents cf4976f + 7da4f08 commit 78654f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/linuxcnc.in
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,9 @@ HALCOMMAND=$($INIVAR -ini "$INIFILE" -var HALCMD -sec HAL -num $NUM 2> /dev/null
while [ -n "$HALCOMMAND" ] ; do
if [ -n "$HALCOMMAND" ] ; then
echo "Running HAL command: $HALCOMMAND" >> "$PRINT_FILE"
if ! $HALCMD "$HALCOMMAND" && [ -z "$DASHK" ]; then
# The HALCOMMAND must be word-split
# shellcheck disable=SC2086
if ! $HALCMD $HALCOMMAND && [ -z "$DASHK" ]; then
echo "INI file HAL command $HALCOMMAND failed."
Cleanup
exit 1
Expand Down

0 comments on commit 78654f1

Please sign in to comment.