]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vshReadlineParse: Escape returned results if needed
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Nov 2017 12:34:54 +0000 (13:34 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
commit61fb1df74d11f16ebfde36027da91b6cc1635375
treef28f7d79a049887ade680955b5fda6d233550284
parent255be07d35a6633b45fc8a82e1e91b93aadf6c7a
vshReadlineParse: Escape returned results if needed

When returning a string that needs escaping there are two
scenarios that can happen. Firstly, user already started the
string with a quote (or double quote) in which case we don't need
to do anything - readline takes care of that. However, if they
haven't typed anything yet, we need to escape the string
ourselves.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c