[virt-tools-list] Paths with whitespace in guestfish

Robert Nichols rnicholsNOSPAM at comcast.net
Tue Oct 13 01:06:03 UTC 2015


Is guestfish able to handle paths that include whitespace? I've
tried just about everything I can think of:

 ><fs> ls /Users/Owner/My\ Documents
ls should have 1 parameter(s)
type 'help ls' for help on ls
 ><fs> ls "/Users/Owner/My Documents"
libguestfs: error: ls0: opendir: /Users/Owner/My Documents: No such file 
or directory
 ><fs> ls '/Users/Owner/My Documents'
libguestfs: error: ls0: opendir: /Users/Owner/My Documents: No such file 
or directory
 ><fs> ls "/Users/Owner/My\ Documents"
guestfish: invalid escape sequence in string (starting at offset 15)
 ><fs> ls "/Users/Owner/My\040Documents"
libguestfs: error: ls0: opendir: /Users/Owner/My Documents: No such file 
or directory

And yes, that is a valid path:
 ><fs> ls /Users/Owner
AppData
Application Data
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
Links
Local Settings
Music
My Documents
...

virt-tar-out _can_ handle the whitespace.  Oddly, virt-copy-out
cannot.  This is very frustrating.

Using CentOS 6.7 with libguestfs-tools-c-1.20.11-14.el6.x86_64.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.




More information about the virt-tools-list mailing list