You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sourcing the generated bash completion for this, I get the following error:
-bash: /home/jbion/amper-completion.bash: line 539: syntax error near unexpected token `arguments'
-bash: /home/jbion/amper-completion.bash: line 539: ` program arguments)'
Adding quotes around program arguments in the completion script solves the problem.
I guess there are 2 ways this could be solved:
forbid spaces (and other chars that could mess up with bash) in the metavar name with an explicit doc and error
quote the metavar name in the bash case
The text was updated successfully, but these errors were encountered:
joffrey-bion
changed the title
Bash completion script is broken if an argument() name contains spaces
Bash completion script is broken if an argument() metavar contains spaces
Nov 5, 2024
I have a command like this, and for some reason someone decided to put spaces in the arguments metavar:
When sourcing the generated bash completion for this, I get the following error:
Adding quotes around
program arguments
in the completion script solves the problem.I guess there are 2 ways this could be solved:
case
The text was updated successfully, but these errors were encountered: