From 2bfad02a94ca607d918ea871147680dbeff0999c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Sep 2006 09:22:34 +0000 Subject: 22742: parameter padding uses string lengths unless (m) flag set 22743: restrict sh "- [args]" -> "-xv [-- args]" hack to sh mode --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') 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]) -- cgit 1.4.1