virsh's bash completion fails for (domain) names containing spaces
Software environment
- libvirt version: 6.10.0
Description of problem
The bash completion tool for virsh fails to complete name of VM containing multiple spaces. The name is split into multiple parts each serving as individual completion suggestion.
Steps to reproduce
- Define a VM with a long name with spaces:
$ virsh define snapdom.xml
Domain OWASP Broken Web Apps VM v1.2 defined from snapdom.xml
$ virsh list --all
Id Name State
------------------------------------------------
- OWASP Broken Web Apps VM v1.2 shut off
- snap-inactive shut off
- Try to start it using virsh while completing it's name:
$ virsh start OW<tab><tab>
Apps Broken OWASP v1.2 VM Web