Would somebody please explain?

Neil Rickert rickert at mp.cs.niu.edu
Sun Apr 21 12:34:16 AEST 1991


In article <1991Apr21.001702.5661 at umbc3.umbc.edu> rouben at math16.math.umbc.edu (Rouben Rostamian) writes:
>The command:
>    expr "Match" : "Ma"
>returns 2, as it should, since the first two characters of "Match" and "Ma"
>coincide.  Now, would somebody please explain why the command:
>    expr "match" : "ma"
>complains of a "syntax error"?

  I just ran:  strings /bin/expr

  From the output I would guess that 'match', 'index', 'substr' and 'length'
are builin functions or operators for 'expr', although they are not documented
in any man pages that I have seen.

  I don't know the syntax for using them either.

  I guess this is one of those questions to cross post to wizards.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940



More information about the Comp.unix.wizards mailing list