While preparing #5858, I found this bit in share/completions/magento.fish:
complete-x-c magento -s h -lhelp-d"Show help for a command";
complete-x-c magento -s q -l quiet -d"Do not output any message";
complete-x-c magento -s v -l verbose -a"(__fish_print_magento_verbosity_levels)"-d"Increase verbosity: 1 for normal, 2 for verbose and 3 for debug";
complete-x-c magento -o-vv;
complete-x-c magento -o vvv;
complete-x-c magento -s V -l version -d"Show version";
complete-x-c magento -l ansi -d"Force colored output";
complete-x-c magento -l no-ansi -d"Disable colored output";
complete-x-c magento -s n -l no-interaction -d"Don't ask any interactive question";
turned into
complete-x-c magento -s h -lhelp-d"Show help for a command"complete-x-c magento -s q -l quiet -d"Do not output any message"complete-x-c magento -s v -l verbose -a"(__fish_print_magento_verbosity_levels)"-d"Increase verbosity: 1 for normal, 2 for verbose and 3 for debug"complete-x-c magento -o-vvcomplete-x-c magento -o vvv
complete-x-c magento -s V -l version -d"Show version"complete-x-c magento -l ansi -d"Force colored output"complete-x-c magento -l no-ansi -d"Disable colored output"complete-x-c magento -s n -l no-interaction -d"Don't ask any interactive question"
Clearly fish_indent just sees the semicolon as two commands on one line and breaks them up on multiple lines. Only the second command is empty.
AAAAAAAAAA
is the result of printf '%s\n' 'AAAAAAAAAA;;;;;;;;;;;;' | fish_indent.
The text was updated successfully, but these errors were encountered:
This removes semicolons at the end of the line and collapses
consecutive ones, while replacing meaningful semicolons with newlines.
I.e.
```fish
echo;
```
becomes
```fish
echo
```
but
```fish
echo; echo
```
becomes
```fish
echo
echo
```
Fixesfish-shell#5859.
faho
added a commit
to faho/fish-shell
that referenced
this issue
May 3, 2019
While preparing #5858, I found this bit in share/completions/magento.fish:
turned into
Clearly fish_indent just sees the semicolon as two commands on one line and breaks them up on multiple lines. Only the second command is empty.
is the result of
printf '%s\n' 'AAAAAAAAAA;;;;;;;;;;;;' | fish_indent
.The text was updated successfully, but these errors were encountered: