zsh-workers
 help / color / mirror / code / Atom feed
* set - $foo resets set -x
@ 2006-09-19 16:23 Andrey Borzenkov
  2006-09-19 16:54 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Andrey Borzenkov @ 2006-09-19 16:23 UTC (permalink / raw)
  To: zsh-workers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, specifically debugging completion functions you do not actually have 
control over it; functions just appear to return out of the middle without 
any apparent reason.

It looks intentional:

    /* 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]) {
        dosetopt(VERBOSE, 0, 0);
        dosetopt(XTRACE, 0, 0);
        if (!args[1])
            return 0;
    }

Anyone remembers the reasons for that? May be we can at least relax it if 
running in emulate zsh mode?

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFEBlqR6LMutpd94wRAuFZAJ9chUUsudM6P+tygd3Vc0WJf4UOoQCfZcid
tTH42YOo9iY1UML8TdDZgWs=
=XjoF
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-20 16:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-19 16:23 set - $foo resets set -x Andrey Borzenkov
2006-09-19 16:54 ` Peter Stephenson
2006-09-20  4:52   ` Bart Schaefer
2006-09-20 15:40     ` Andrey Borzenkov
2006-09-20 16:04       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).