[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]