about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-10-29 19:32:20 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-10-29 19:32:20 +0000
commit85ef41cdc801cbd80371c8d5fc11b991b29ae35e (patch)
tree7bdb2d8740d0aaa51757eab8cb4ae6a2886e4a52 /Src
parent9a4a3d183f7ceeef5fd7100869979fcc77bf5c41 (diff)
downloadzsh-85ef41cdc801cbd80371c8d5fc11b991b29ae35e.tar.gz
zsh-85ef41cdc801cbd80371c8d5fc11b991b29ae35e.tar.xz
zsh-85ef41cdc801cbd80371c8d5fc11b991b29ae35e.zip
Merge of 22743: "set - [args]" -> "set -xv [-- args]" hack and limit it to non-native emulation.
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 910d73f6d..2adecbe21 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -536,7 +536,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])