[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Bug with for Loops on Arrays
From: |
Martin Nattrodt |
Subject: |
[bug-gawk] Bug with for Loops on Arrays |
Date: |
Mon, 30 May 2011 10:37:13 +0200 |
GNU Awk
3.0.4
Microsoft
Windows [Version 6.1.7601](Windows 7 64 Bit)
Hello,
I
foud Bug wich
gawk.
the loop
over an array has some stange behaviour.
Code
example an result:
-------------------Begin
Descriptin-----------------------
/cygdrive/c
# gawk '{split("X_B_T_IN",a,"_");for(i in a)print i;}'
foo.txt
4
1
2
3
------------------End
Description----------------------
I
would expect the following
output:
X
B
T
IN
But gawk
is very strange here.
Mit
freundlichen Grüßen | With Best Regards
Martin
Nattrodt
Softwareentwicklung
Software
Development
logi.cals
GmbH Austria
logi.cals
- all the more
power
Mailüfterlweg
1 | 3124 Oberwölbling |
Austria
P +43 2786
77147
F +43 2786
77147-16
address@hidden
www.logicals.com
| www.logiboard.com
logi.cals
automation solutions & services
GmbH
Company
Register Number FN93846i | HG St. Pölten
- [bug-gawk] Bug with for Loops on Arrays,
Martin Nattrodt <=