Richard W.M. Jones
2011-Jul-14 18:16 UTC
[Libguestfs] Note about guestfish escape sequences
I've pushed this patch in response to a user request to make it easier to write newlines and other characters in guestfish: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=617e7f6bafa7de2303c08e1715004aae3141c389 This lets you write: ><fs> write /file "this is a line\n" and have it do what you'd expect. (With current guestfish, this writes backslash followed by 'n' and no newline into the file) In theory this is a change to the behaviour of guestfish, _if_ you were relying on the above to literally write backslash-<char>. We never documented it either way. Note that the change only applies to double-quoted strings. Single quoted strings and unquoted strings are unaffected. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
Seemingly Similar Threads
- NOTE: running ./fish/guestfish etc from build dir without installing
- [PATCH 0/2] Implement upload-offset, download-offset APIs, and hexedit guestfish command
- [PATCH] Guestfish feature: remote control of guestfish over a pipe
- [PATCH 0/7] Add libvirt domain to core API
- [PATCH version 2] guestfish: Use xstrtol to parse integers (RHBZ#557655).