zsh-workers
 help / color / mirror / code / Atom feed
* Parameter scope error
@ 2020-06-05 13:19 Mikael Magnusson
  0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2020-06-05 13:19 UTC (permalink / raw)
  To: zsh-workers

a() {
 for 1 in 1 2 3; do
  typeset -F1.1 a
  a=$1
 done
}
a
echo $a
unset a
echo $a
unset a
echo $a

output:
(anon):typeset: bad precision value: 1.1
(anon):typeset: bad precision value: 1.1
(anon):typeset: bad precision value: 1.1
3.0000000000
2.0000000000
1.0000000000


-- 
Mikael Magnusson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-05 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 13:19 Parameter scope error Mikael Magnusson

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