On 18 Aug 2002 09:38:23 +1000, Cameron Simpson wrote: > > Me too. Doesn't even fork an extra process. > > | head is more portable, read is not available in some shells like tcsh/csh. > > Speaking as one who predates "head" I'd had differed on this:-) (Well, at the > least started on systems that predated "head"). > > True, [t]csh users can't use read. But Bourne shell users can, and should.
Continuing this useless discussion. If you don't want your script to fork, use perl and <> to read a line, or use $< in tcsh, or use a portable solution that is not language specific like using head/sed. Some unices have utility called line that does just what "head -1" does. Regards, Mikhael. -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]