[Thread Prev][Thread Next][Index]

[ferret_users] 'head -1' syntax causes Fprint to fail



We have a ferret script that causes the error message:

head -1 t_ref
grep -s ^GKSM
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.

when invoking Fprint with "spawn Fprint -o ($psfile) ...".
What's odd is that other scripts don't cause 'head' to abort like this.

info coreutils head

explains that

POSIX 1003.1-2001 does not allow 'head -1' syntax. Anyone know the cause for 'head' to be in or out of obsolete mode in the context of Fprint and ferret?

From the tcsh shell, the following works:
head -1 t_ref
GKSM...

which head
/usr/bin/head
head --version
head (coreutils) 5.2.1

uname -a
Linux rsz 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386 GNU/Linux
(aka red hat enterprise linux)

FERRET v5.70 (gcc3.2)
Linux(g77) 2.4.18 - 10/08/04
7-Apr-06 12:03

Thanks,

--
Remik Ziemlinski Raytheon Company
NOAA/Geophysical Fluid Dynamics Lab. Remik.Ziemlinski at noaa d0t gov
P.O. Box 308 1.609.452.6500 ext. 6977
Princeton, NJ 08542 USA 1.609.987.5063 fax

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement