/etc/config bug on a SUN-100??

keenan at inmet.UUCP keenan at inmet.UUCP
Mon Sep 2 01:55:00 AEST 1985



A similar problem lies with the parser used by expr(1). Most versions of
expr have a length operator used thusly:
              expr length <string>
However the string must not be any of the other expr operators. For example:
              expr length length
gives a syntax error. The problem is that the scanner knows about the
keywords and returns the token instead of the string.

--keenan ross		UUCP:     {bellcore,ima,ihnp4}!inmet!keenan
 Intermetrics, Inc.	INTERNET: ima!inmet!keenan at CCA-UNIX.ARPA
 733 Concord Ave.
 Cambridge, MA  02138	PHONE:    (617) 661-1840



More information about the Comp.unix mailing list