From 217d2ec8af3aedb49e87ccccf93775617f00e0ca Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 3 Jan 2012 11:50:13 +0100 Subject: [PATCH] Terminate csh commands with a semicolon. Fixes bug#1386. * agent/gpg-agent.c (main): Terminate csh style output with a semicolon. * scd/scdaemon.c: Ditto. --- agent/gpg-agent.c | 6 +++--- scd/scdaemon.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index f12f73ceb..b00d899d0 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -1175,13 +1175,13 @@ main (int argc, char **argv ) if (csh_style) { *strchr (infostr, '=') = ' '; - printf ("setenv %s\n", infostr); + printf ("setenv %s;\n", infostr); if (opt.ssh_support) { *strchr (infostr_ssh_sock, '=') = ' '; - printf ("setenv %s\n", infostr_ssh_sock); + printf ("setenv %s;\n", infostr_ssh_sock); *strchr (infostr_ssh_pid, '=') = ' '; - printf ("setenv %s\n", infostr_ssh_pid); + printf ("setenv %s;\n", infostr_ssh_pid); } } else diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 95f657065..064d3424c 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -828,7 +828,7 @@ main (int argc, char **argv ) if (csh_style) { *strchr (infostr, '=') = ' '; - printf ( "setenv %s\n", infostr); + printf ( "setenv %s;\n", infostr); } else {