From 890af4ca8fc8103b4699b2a51f97a82da68df4f6 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 30 Mar 2010 14:50:35 -0600 Subject: [PATCH] virsh: add 'exit' as an alias for 'quit' 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 | 1 + tools/virsh.pod | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/virsh.c b/tools/virsh.c index ddcc052855..5c56fa6008 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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}, diff --git a/tools/virsh.pod b/tools/virsh.pod index 9434f312b4..fc4a70c4c2 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -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 B I will print out a detailed help message on that command. -=item B +=item B, B quit this interactive terminal