summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-11-10 23:00:39 +0000
committerjilles <jilles@FreeBSD.org>2013-11-10 23:00:39 +0000
commit367c40c27774d9a80d4a5b4f78ff793dbcc79ac0 (patch)
tree4510c00c70eb6cd56c4b7fa4d8138f9627a6c776 /tools/regression
parentcbf14d2794b4527754999c31302303af3770a512 (diff)
downloadFreeBSD-src-367c40c27774d9a80d4a5b4f78ff793dbcc79ac0.zip
FreeBSD-src-367c40c27774d9a80d4a5b4f78ff793dbcc79ac0.tar.gz
sh: Properly quote alias output from command -v.
An alias should be printed by command -v as a command line; therefore, make the alias definition suitable for re-input to the shell.
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/sh/builtins/command12.07
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/command12.0 b/tools/regression/bin/sh/builtins/command12.0
new file mode 100644
index 0000000..f981db3
--- /dev/null
+++ b/tools/regression/bin/sh/builtins/command12.0
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+alias aa=echo\ \'\"\'
+cmd=$(command -v aa)
+alias aa=echo\ bad
+eval "$cmd"
+[ "$(eval aa)" = \" ]
OpenPOWER on IntegriCloud