From 08310849a28071fbca761fa4ca18702b39092947 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 27 May 2020 11:43:14 +0200 Subject: [PATCH] card: Add command "bye" * tools/gpg-card.c: Add command "bye" as alias for "quit". * tools/gpg-connect-agent.c (main): Add "/quit" as alias for "/bye" --- tools/gpg-card.c | 1 + tools/gpg-connect-agent.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gpg-card.c b/tools/gpg-card.c index 76301eb31..0998418c1 100644 --- a/tools/gpg-card.c +++ b/tools/gpg-card.c @@ -3152,6 +3152,7 @@ static struct } cmds[] = { { "quit" , cmdQUIT, N_("quit this menu")}, { "q" , cmdQUIT, NULL }, + { "bye" , cmdQUIT, NULL }, { "help" , cmdHELP, N_("show this help")}, { "?" , cmdHELP, NULL }, { "list" , cmdLIST, N_("list all available data")}, diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index 12b0d8686..746ac7daf 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -1809,7 +1809,7 @@ main (int argc, char **argv) } } } - else if (!strcmp (cmd, "bye")) + else if (!strcmp (cmd, "bye") || !strcmp (cmd, "quit")) { break; }