powerline-go icon indicating copy to clipboard operation
powerline-go copied to clipboard

Unknown option error after tab autocompletion and ctrl + C

Open christophehenry opened this issue 4 years ago • 0 comments

Describe the bug In some circumstances, it seems that the autocomplete output is transmitted to powerline-go and interpretted as an option. But I hope this is not a very secific error of y setup and it can be reproduced.

To Reproduce Steps to reproduce the behavior:

  1. Type a command that always takes subcommand (for me, it reproduces with Android's adb, it is available on most Linuxes under the android-tools package)
  2. Hit tab to autcomple the subcommands and options; for `adb, it shoud display:
bugreport          devices            -e                 get-serialno       install            logcat             pull               reboot-bootloader  -s                 status-window      uninstall          
connect            disable-verity     emu                get-state          jdwp               lolcat             push               remount            shell              sync               usb                
-d                 disconnect         forward            help               kill-server        -p                 reboot             root               start-server       tcpip              version
  1. Hit ctrl + c
  2. powerline-go should display flag provided but not defined: -d and the the help.

Expected behavior Output from autocomplete should not be passed to powerline-go.

Environment (please complete the following information):

  • OS: Linux Fedora 35
  • Architecture: AMD64
  • Shell: Bash

christophehenry avatar Feb 26 '22 12:02 christophehenry