* xtrace scope
@ 2005-07-28 15:26 Clint Adams
2005-07-28 16:38 ` Peter Stephenson
0 siblings, 1 reply; 5+ messages in thread
From: Clint Adams @ 2005-07-28 15:26 UTC (permalink / raw)
To: zsh-workers
Is there rationale for having XTRACE be local to functions?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xtrace scope
2005-07-28 15:26 xtrace scope Clint Adams
@ 2005-07-28 16:38 ` Peter Stephenson
2005-08-01 13:53 ` Clint Adams
0 siblings, 1 reply; 5+ messages in thread
From: Peter Stephenson @ 2005-07-28 16:38 UTC (permalink / raw)
To: zsh-workers
Clint Adams wrote:
> Is there rationale for having XTRACE be local to functions?
This feature long predates LOCAL_OPTIONS and I kept it as a special
case when I added that just for compatibility. I don't think there's
any standardisation requirement.
pws
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xtrace scope
2005-07-28 16:38 ` Peter Stephenson
@ 2005-08-01 13:53 ` Clint Adams
2005-08-01 14:11 ` Peter Stephenson
2005-08-01 16:36 ` Oliver Kiddle
0 siblings, 2 replies; 5+ messages in thread
From: Clint Adams @ 2005-08-01 13:53 UTC (permalink / raw)
To: zsh-workers
> This feature long predates LOCAL_OPTIONS and I kept it as a special
> case when I added that just for compatibility. I don't think there's
> any standardisation requirement.
Would it be silly to add another option so XTRACE changes could be made
global in sh/ksh emulation?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xtrace scope
2005-08-01 13:53 ` Clint Adams
@ 2005-08-01 14:11 ` Peter Stephenson
2005-08-01 16:36 ` Oliver Kiddle
1 sibling, 0 replies; 5+ messages in thread
From: Peter Stephenson @ 2005-08-01 14:11 UTC (permalink / raw)
To: zsh-workers
Clint Adams wrote:
> > This feature long predates LOCAL_OPTIONS and I kept it as a special
> > case when I added that just for compatibility. I don't think there's
> > any standardisation requirement.
>
> Would it be silly to add another option so XTRACE changes could be made
> global in sh/ksh emulation?
I'm not sure what the right answer is... Maybe it's small enough that
we can simply annoy people and make "set -x" obey normal option control,
so that you need to set localoptions.
pws
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xtrace scope
2005-08-01 13:53 ` Clint Adams
2005-08-01 14:11 ` Peter Stephenson
@ 2005-08-01 16:36 ` Oliver Kiddle
1 sibling, 0 replies; 5+ messages in thread
From: Oliver Kiddle @ 2005-08-01 16:36 UTC (permalink / raw)
To: zsh-workers
Clint Adams wrote:
> Would it be silly to add another option so XTRACE changes could be made
> global in sh/ksh emulation?
Keep in mind that xtrace changes can be local in ksh.
In ksh, there is a difference between defining a function using the
`function name {}' syntax and the `name() {}' syntax. With the former,
`set -x' and other things like typeset have local scope.
Oliver
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-01 16:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 15:26 xtrace scope Clint Adams
2005-07-28 16:38 ` Peter Stephenson
2005-08-01 13:53 ` Clint Adams
2005-08-01 14:11 ` Peter Stephenson
2005-08-01 16:36 ` Oliver Kiddle
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).