If piping text to the Windows clipboard produces an error like the one below, a possible fix can be to restart the systemd-binfmt service
echo "test" | clip.exe
sh: exec format error: clip.exe
sudo systemctl restart systemd-binfmt If piping text to the Windows clipboard produces an error like the one below, a possible fix can be to restart the systemd-binfmt service
echo "test" | clip.exe
sh: exec format error: clip.exe
sudo systemctl restart systemd-binfmt