Skip to content

Commit 1a6f64b

Browse files
authored
fix: multiple syntax errors / missing quotes in hwloc bash completions
``` -bash: /opt/homebrew/etc/bash_completion.d/hwloc: line 210: syntax error near unexpected token `<' -bash: /opt/homebrew/etc/bash_completion.d/hwloc: line 210: ` COMPREPLY=( "<integer>" "" )' -bash: /opt/homebrew/etc/bash_completion.d/hwloc: line 211: syntax error near unexpected token `;;' -bash: /opt/homebrew/etc/bash_completion.d/hwloc: line 211: ` ;;' ``` and ``` > shellcheck /opt/homebrew/etc/bash_completion.d/hwloc In /opt/homebrew/etc/bash_completion.d/hwloc line 295: COMPREPLY=( "hwloc" "list" taskset" ) ^-- SC1009 (info): The mentioned syntax error was in this variable assignment. ^-- SC1073 (error): Couldn't parse this array assignment. Fix to allow more checks. ^-- SC1078 (warning): Did you forget to close this double quoted string? ```
1 parent 603b272 commit 1a6f64b

File tree

1 file changed

+4
-4
lines changed
  • contrib/completion/bash

1 file changed

+4
-4
lines changed

contrib/completion/bash/hwloc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ _lstopo() {
148148
COMPREPLY=( `compgen -W "links merge-switch-ports transitive-closure" -- "$cur"` )
149149
;;
150150
--cpuset-output-format | --cof)
151-
COMPREPLY=( "hwloc" "list" taskset" )
151+
COMPREPLY=( "hwloc" "list" "taskset" )
152152
;;
153153
esac
154154
fi
@@ -293,7 +293,7 @@ _hwloc_bind(){
293293
COMPREPLY=( "<memattr>" "" )
294294
;;
295295
--cpuset-output-format | --cof)
296-
COMPREPLY=( "hwloc" "list" taskset" )
296+
COMPREPLY=( "hwloc" "list" "taskset" )
297297
;;
298298
esac
299299
fi
@@ -373,7 +373,7 @@ _hwloc_calc(){
373373
COMPREPLY=( "<name>=<value>" "<n>" "" )
374374
;;
375375
--cpuset-input-format | --cif | --cpuset-output-format | --cof)
376-
COMPREPLY=( "hwloc" "list" taskset" )
376+
COMPREPLY=( "hwloc" "list" "taskset" )
377377
;;
378378
esac
379379
fi
@@ -488,7 +488,7 @@ _hwloc_distrib(){
488488
COMPREPLY=( "<integer>" "" )
489489
;;
490490
--cpuset-output-format | --cof)
491-
COMPREPLY=( "hwloc" "list" taskset" )
491+
COMPREPLY=( "hwloc" "list" "taskset" )
492492
;;
493493
esac
494494
fi

0 commit comments

Comments
 (0)