Macro for translating escape sequence to char expects it to be all uppercase. Without this, various lowercase sequences are malformed: e.g. ^e gets translated to %. --- tools/virsh.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index d58b827..ff8b3d2 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -17776,6 +17776,11 @@ vshParseArgv(vshControl *ctl, int argc, char **argv) if ((len == 2 && *optarg == '^') || (len == 1 && *optarg != '^')) { ctl->escapeChar = optarg; + while (*optarg) { + if (islower(*optarg)) + *optarg = toupper(*optarg); + optarg++; + } } else { vshError(ctl, _("Invalid string '%s' for escape sequence"), optarg); -- 1.7.3.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list