X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fguestfish.pod;h=65fccc8dad93a6fb277aca69fe72c9ecf453dcd0;hb=21cc345838d2cf631880a0ae140e96fa8064b588;hp=c2154af903e5ea1998e354e2d2763fa418b93b4d;hpb=69f33a9dbc64faddb05fdef12b9e2d894be80cbe;p=libguestfs.git diff --git a/fish/guestfish.pod b/fish/guestfish.pod index c2154af..65fccc8 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -428,6 +428,25 @@ This syntax implicitly calls C (q.v.) so it also handles case insensitivity like Windows would. This only works in argument positions that expect a path. +=head1 UPLOADING AND DOWNLOADING FILES + +For commands such as C, C, C, C and +others which upload from or download to a local file, you can use the +special filename C<-> to mean "from stdin" or "to stdout". For example: + + upload - /foo + +reads stdin and creates from that a file C in the disk image, +and: + + tar-out /etc - | tar tf - + +writes the tarball to stdout and then pipes that into the external +"tar" command (see L). + +When using C<-> to read from stdin, the input is read up to the end of +stdin. + =head1 EXIT ON ERROR BEHAVIOUR By default, guestfish will ignore any errors when in interactive mode @@ -734,8 +753,8 @@ enough. =head1 EXIT CODE -guestfish returns I<0> if the commands completed without error, or -I<1> if there was an error. +guestfish returns 0 if the commands completed without error, or +1 if there was an error. =head1 SEE ALSO @@ -759,7 +778,7 @@ Richard W.M. Jones (C) =head1 COPYRIGHT -Copyright (C) 2009 Red Hat Inc. +Copyright (C) 2009-2010 Red Hat Inc. L This program is free software; you can redistribute it and/or modify