fish: Suggest safer form of eval.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 5 Nov 2010 15:07:11 +0000 (15:07 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 5 Nov 2010 15:39:24 +0000 (15:39 +0000)
eval "$(guestfish --listen)"

instead of various other forms.

(Thanks Eric Blake).

fish/guestfish.pod

index 7319bd7..2806102 100644 (file)
@@ -140,7 +140,7 @@ To list what is available do:
 
 =head2 Remote control
 
 
 =head2 Remote control
 
- eval `guestfish --listen`
+ eval "`guestfish --listen`"
  guestfish --remote add-ro disk.img
  guestfish --remote run
  guestfish --remote lvs
  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:
 
 
 Start a guestfish server process using:
 
- eval `guestfish --listen`
+ eval "`guestfish --listen`"
 
 and then send it commands by doing:
 
 
 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:
 
 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
  pid1=$GUESTFISH_PID
- eval `guestfish --listen`
+ eval "`guestfish --listen`"
  pid2=$GUESTFISH_PID
  ...
  guestfish --remote=$pid1 cmd
  pid2=$GUESTFISH_PID
  ...
  guestfish --remote=$pid1 cmd