about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-20 09:22:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-20 09:22:34 +0000
commit2bfad02a94ca607d918ea871147680dbeff0999c (patch)
treea34147b24c87e9144029b7b02fc70787a0eafb93 /Src/builtin.c
parent1554b8105322defdb7df5580d84a40490597711f (diff)
downloadzsh-2bfad02a94ca607d918ea871147680dbeff0999c.tar.gz
zsh-2bfad02a94ca607d918ea871147680dbeff0999c.tar.xz
zsh-2bfad02a94ca607d918ea871147680dbeff0999c.zip
22742: parameter padding uses string lengths unless (m) flag set
22743: restrict sh "- [args]" -> "-xv [-- args]" hack to sh mode
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index dbe50d13c..713e41a98 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -535,7 +535,7 @@ bin_set(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
 
     /* Obsolescent sh compatibility: set - is the same as set +xv *
      * and set - args is the same as set +xv -- args              */
-    if (*args && **args == '-' && !args[0][1]) {
+    if (emulation != EMULATE_ZSH && *args && **args == '-' && !args[0][1]) {
 	dosetopt(VERBOSE, 0, 0);
 	dosetopt(XTRACE, 0, 0);
 	if (!args[1])