zsh-workers
 help / color / mirror / code / Atom feed
* WARN_CREATE_GLOBAL and parameters used by the shell
@ 2015-11-20 11:44 Vincent Lefevre
  2015-11-20 11:49 ` Peter Stephenson
  2015-11-20 11:55 ` Vincent Lefevre
  0 siblings, 2 replies; 4+ messages in thread
From: Vincent Lefevre @ 2015-11-20 11:44 UTC (permalink / raw)
  To: zsh-workers

I think that when WARN_CREATE_GLOBAL is set, one should get no warnings
for parameters used by the shell, as their intent is to be global.

For instance:

cventin% setopt WARN_CREATE_GLOBAL
cventin% foo() { RPS1="<" }
cventin% foo
foo: scalar parameter RPS1 created globally in function

There is no such problem with PS1, PS2, PS3 and PS4, probably because
they are already set by zsh.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


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

end of thread, other threads:[~2015-11-20 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-20 11:44 WARN_CREATE_GLOBAL and parameters used by the shell Vincent Lefevre
2015-11-20 11:49 ` Peter Stephenson
2015-11-20 11:55 ` Vincent Lefevre
2015-11-20 12:01   ` Peter Stephenson

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).