Bug 582993
Summary: | guestfish eats words when tab completing case (in)sensitive paths | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Jinxin Zheng <jzheng> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | unspecified | CC: | mbooth, virt-maint, yuzhang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-05-25 13:04:59 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jinxin Zheng
2010-04-16 11:19:45 UTC
Easy to reproduce this, and it's not specific to NTFS, but happens
also on ext3 filesystems.
$ guestfish -N fs:ext3 -m /dev/sda1
><fs> touch /ABC
><fs> touch /abc
><fs> ll /a<tab>
results in the 'a' character disappearing.
I've pushed the following commit upstream: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=21bd2db7cf259a17cc3922409937b849e4b83c0f Testing this is complicated. You need to look at all combinations of: (A) No ~/.inputrc file (B) ~/.inputrc file containing set completion-ignore-case on (C) ~/.inputrc file containing set completion-ignore-case off and (1) A filesystem containing files /ABC and /abc (2) A filesystem containing just /ABC and (i) Tab-completing /a<tab> (ii) Tab-completing /A<tab> However this does work for me, and the default behaviour (without ~/.inputrc) feels more intuitive particularly on Windows guests. (In reply to comment #2) > I've pushed the following commit upstream: > http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=21bd2db7cf259a17cc3922409937b849e4b83c0f > > Testing this is complicated. You need to look at > all combinations of: > > (A) No ~/.inputrc file > > (B) ~/.inputrc file containing > set completion-ignore-case on > > (C) ~/.inputrc file containing > set completion-ignore-case off > > and > > (1) A filesystem containing files /ABC and /abc > > (2) A filesystem containing just /ABC > > and > > (i) Tab-completing /a<tab> > > (ii) Tab-completing /A<tab> I tested your change following your suggestion. it looks good to me. setting completion-ignore-case on/off effectively changes the fish's behaviour as supposed to. > > However this does work for me, and the default behaviour > (without ~/.inputrc) feels more intuitive particularly on > Windows guests. Thanks libguestfs-1.2.9-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/libguestfs-1.2.9-1.el5 libguestfs-1.2.9-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/libguestfs-1.2.9-1.fc13 libguestfs-1.2.9-1.el5.1 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/libguestfs-1.2.9-1.el5.1 |