]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: add 'exit' as an alias for 'quit'
authorEric Blake <eblake@redhat.com>
Tue, 30 Mar 2010 20:50:35 +0000 (14:50 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 31 Mar 2010 14:40:06 +0000 (08:40 -0600)
Call me lazy: some shells use exit (e.g. sh), others use quit (e.g. ftp),
but I never remember which.  So it's faster to write a patch to make
virsh take both than it is to take a 50-50 guess, and get it wrong
in half of my attempts.

* tools/virsh.c (commands): Add 'exit'.
* tools/virsh.pod: Document it.

tools/virsh.c
tools/virsh.pod

index ddcc052855065f9e02cad05529b51bb2f3a39ee1..5c56fa60084f4fa42514d71dac38c29f6e21b81c 100644 (file)
@@ -8254,6 +8254,7 @@ static const vshCmdDef commands[] = {
     {"pwd", cmdPwd, NULL, info_pwd},
 #endif
     {"quit", cmdQuit, NULL, info_quit},
+    {"exit", cmdQuit, NULL, info_quit},
     {"reboot", cmdReboot, opts_reboot, info_reboot},
     {"restore", cmdRestore, opts_restore, info_restore},
     {"resume", cmdResume, opts_resume, info_resume},
index 9434f312b4b43583b83dac40d1f39a782faa1176..fc4a70c4c29d2ad1399cf94a54603ed028928ba7 100644 (file)
@@ -65,7 +65,7 @@ The following commands are generic i.e. not specific to a domain.
 This prints a small synopsis about all commands available for B<virsh>
 B<help> I<command> will print out a detailed help message on that command.
 
-=item B<quit>
+=item B<quit>, B<exit>
 
 quit this interactive terminal