Describe the bug
When I copy and paste a command from copilot output, the command is not found because of a hidden byte order mark is prepended. For example, if I copy the three letters "sed" from copilot output and pipe it through hexdump you can see the extra bytes:
❯ sed
-bash: sed: command not found
~
❯ echo 'sed' | hexdump -C
00000000 ef bb bf 73 65 64 0a |...sed.|
00000007
This used to work so I believe it might be regression. Copying and pasting outputs from other programs besides github copilot cli continues to work.
I tried to repro with github copilot cli in the terminal on Windows 11 and also in the terminal in VSCode remoted to WSL. It repro'd in both cases.
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response