[Thread Prev][Thread Next][Index]

[ferret_users] the length of a string array return from spawn



Hi Ferreters,

I was following Ch7 Sec2.11 (SPAWN command) to get the number of netcdf files in the current directory, so I tried

yes? let a = {"dummy",SPAWN:"ls m002?.nc"}
yes? list a
             VARIABLE : {"dummy",SPAWN:"ls m002?.nc"}
             SUBSET   : 5 points (X)
 1   / 1:"dummy"
 2   / 2:"m002a.nc"
 3   / 3:" m002b.nc"
 4   / 4:"m002c.nc"
 5   / 5:"m002d.nc"
yes? say `a,return=iend`
 !-> MESSAGE/CONTINUE 2001
2001
instead of 5, the last command returns 2001, which is not consistent with what the manual says. is anything wrong or the manual is out-of-date? i'm using the latest version of FERRET and the system is Fedora Core 7.

Thanks,
D.


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement