[PATCH 0/9] Fix a slightly rework auto completion

Michal Privoznik mprivozn at redhat.com
Tue Jan 26 13:27:04 UTC 2021


These fixes were inspired by:

https://gitlab.com/libvirt/libvirt/-/issues/116

Michal Prívozník (9):
  vshCommandStringGetArg: Drop @sz
  vsh: Don't break word on backslash
  vshReadlineParse: Bring some variables into !state block
  vshReadlineParse: Use g_auto*()
  vshReadlineParse: Rename @buf to @line
  vshReadlineParse: Escape list of candidates earlier
  vsh: Rework how option to complete is found
  vsh: Allow double quotes imbalance for auto completion in
    vshCommandStringGetArg()
  tools: Set IFS for bash completion script

 tools/bash-completion/vsh |   2 +-
 tools/virsh.c             |   4 +-
 tools/virt-admin.c        |   4 +-
 tools/vsh.c               | 125 ++++++++++++++++++++++++--------------
 tools/vsh.h               |   5 +-
 5 files changed, 88 insertions(+), 52 deletions(-)

-- 
2.26.2




More information about the libvir-list mailing list