Xref: utzoo comp.unix.questions:30584 comp.unix.wizards:25026 comp.unix.internals:2582 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!linac!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals Subject: Re: Would somebody please explain? Message-ID: <1991Apr21.023416.5795@mp.cs.niu.edu> Date: 21 Apr 91 02:34:16 GMT References: <1991Apr21.001702.5661@umbc3.umbc.edu> Organization: Northern Illinois University Lines: 23 In article <1991Apr21.001702.5661@umbc3.umbc.edu> rouben@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 Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940