diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-05 15:07:11 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-05 15:39:24 +0000 |
commit | be728962ff636e260f09dca6a1175c442d687551 (patch) | |
tree | 426cc97d9f742562df09de0f2a681cda4d40750a | |
parent | 633ae13c80d40b0f30db73e520c08cf365d2f8a3 (diff) | |
download | libguestfs-be728962ff636e260f09dca6a1175c442d687551.tar.gz libguestfs-be728962ff636e260f09dca6a1175c442d687551.tar.xz libguestfs-be728962ff636e260f09dca6a1175c442d687551.zip |
fish: Suggest safer form of eval.
eval "$(guestfish --listen)"
instead of various other forms.
(Thanks Eric Blake).
-rw-r--r-- | fish/guestfish.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fish/guestfish.pod b/fish/guestfish.pod index 7319bd72..2806102b 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -140,7 +140,7 @@ To list what is available do: =head2 Remote control - eval `guestfish --listen` + eval "`guestfish --listen`" guestfish --remote add-ro disk.img guestfish --remote run guestfish --remote lvs @@ -730,7 +730,7 @@ up a guestfish process each time. Start a guestfish server process using: - eval `guestfish --listen` + eval "`guestfish --listen`" and then send it commands by doing: @@ -750,9 +750,9 @@ The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which is how the I<--remote> option knows where to send the commands. You can have several guestfish listener processes running using: - eval `guestfish --listen` + eval "`guestfish --listen`" pid1=$GUESTFISH_PID - eval `guestfish --listen` + eval "`guestfish --listen`" pid2=$GUESTFISH_PID ... guestfish --remote=$pid1 cmd |