summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-01-17 10:05:32 +0000
committerPeter Stephenson <pws@zsh.org>2017-01-17 10:05:32 +0000
commitc2f1951ba3e18f8da62cfcb2deb085f2ee1f8d5b (patch)
treef30c3a53fe153bb5bdf660b1f70cb4b362ea4c15 /Src
parent2e76fb80b4c228944b57b8f669e75456a23f147d (diff)
downloadzsh-c2f1951ba3e18f8da62cfcb2deb085f2ee1f8d5b.tar.gz
zsh-c2f1951ba3e18f8da62cfcb2deb085f2ee1f8d5b.tar.xz
zsh-c2f1951ba3e18f8da62cfcb2deb085f2ee1f8d5b.zip
40369: code should have been committed with 0a2d92f98
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index a683032a1..b1b6e2e30 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3747,7 +3747,7 @@ bin_whence(char *nam, char **argv, Options ops, int func)
 		    } else {
 			if (v && !csh)
 			    zputs(*argv, stdout), fputs(" is ", stdout);
-			zputs(buf, stdout);
+			quotedzputs(buf, stdout);
 			if (OPT_ISSET(ops,'s') || OPT_ISSET(ops, 'S'))
 			    print_if_link(buf, OPT_ISSET(ops, 'S'));
 			fputc('\n', stdout);
@@ -3779,7 +3779,7 @@ bin_whence(char *nam, char **argv, Options ops, int func)
 	    } else {
 		if (v && !csh)
 		    zputs(*argv, stdout), fputs(" is ", stdout);
-		zputs(cnam, stdout);
+		quotedzputs(cnam, stdout);
 		if (OPT_ISSET(ops,'s') || OPT_ISSET(ops,'S'))
 		    print_if_link(cnam, OPT_ISSET(ops,'S'));
 		fputc('\n', stdout);