[Libguestfs] [PATCH] fish: add small documentation bit about format of URIs (RHBZ#1450325)
Pino Toscano
ptoscano at redhat.com
Wed Aug 30 14:18:14 UTC 2017
Mention which format URIs follow, with a small example on escaping
special characters.
---
fish/guestfish.pod | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/fish/guestfish.pod b/fish/guestfish.pod
index c3f684563..1201176e9 100644
--- a/fish/guestfish.pod
+++ b/fish/guestfish.pod
@@ -1225,6 +1225,16 @@ The equivalent API command would be:
><fs> add /disk protocol:ssh server:tcp:example.com [username:user]
+Note that the URIs follow the syntax of
+L<RFC 3986|https://tools.ietf.org/html/rfc3986>: in particular, there
+are restrictions on the allowed characters for the various components
+of the URI. Characters such as C<:>, C<@>, and C</> B<must> be
+percent-encoded:
+
+ $ guestfish -a ssh://user:pass%40word@example.com/disk.img
+
+In this case, the password is C<pass at word>.
+
=head1 PROGRESS BARS
Some (not all) long-running commands send progress notification
--
2.13.5
More information about the Libguestfs
mailing list