Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
DEBUG trap and warn_create_global
- X-seq: zsh-workers 42042
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: DEBUG trap and warn_create_global
- Date: Sun, 19 Nov 2017 22:08:45 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=13CaUR0a0ArYakcGqAttXWfjRiZQp6r/PYoaPaXLF50=; b=U96tIVD8VfZMMvd25i6cNaSmcrum2JdZAK5xGeoH2IELmwzHUnDQOKwoJqZrgtxbkt Nm9l4PNsICGQL3oG5Pw2jOZFBEuudpQMqEhN/04Ke5B4nFFUws5XhSrsG8MV1CYL3Ydi upJlPhlYFcYUaUAvy4uzjXCWMuPNApWAlSy5+qTdMVrij5dbZwkQOcOsfqmFlvUabhJO NsU2LJ8Th+h6S/Btpas1dRg47gipVPnkeCALEb1qU819IzqIh0eHrZolfdMELauf+rZR wCVQQomGJ3xyYg6XKVG+pR6cSBO+H1dNzah1ddVEKseJA64KrsT52ZdFafZa6E/Li206 029w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
f() { setopt local_options warn_create_global; :; }; trap : DEBUG; f
in zsh -f outputs
f: scalar parameter ZSH_DEBUG_CMD created globally in function f
I would think ZSH_DEBUG_CMD is local to the trap execution. Otherwise
DEBUG traps can "break" warn_create_global clean functions.
- Matthew Martin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author