zsh-workers
 help / color / 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, back to index

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

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git