-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething that's not working as intendedSomething that's not working as intended
Milestone
Description
Fish shell: 3.2.2
OS: OSX
fish_indent breaks the following command:
type -q aws_completer;\
and complete --command aws --no-files --arguments\
'(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \'s/ $//\'; end)'
after fish_indent:
type -q aws_completer
and complete --command aws --no-files --arguments\
'(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \'s/ $//\'; end)'
This results in:
complete: Unknown option '--arguments(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed 's/ $//'; end)'
fish_indent strips the whitespace between --arguments\ and (begin;...
Possible solutions:
Allow space before \ and after --arguments
type -q aws_completer
and complete --command aws --no-files --arguments \
'(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \'s/ $//\'; end)'
Allow adding a space to the beginning of the line
type -q aws_completer
and complete --command aws --no-files --arguments\
'(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \'s/ $//\'; end)'
Metadata
Metadata
Assignees
Labels
bugSomething that's not working as intendedSomething that's not working as intended