1mNAME0m
       lsearch - See if a list contains a particular element

1mSYNOPSIS0m
       1mlsearch 22m?4mmode24m? 4mlist24m 4mpattern0m


1mDESCRIPTION0m
       This  command  searches  the  elements  of  4mlist24m  to see if one of them
       matches 4mpattern24m.  If so, the command returns the  index  of  the  first
       matching  element.   If not, the command returns 1m-122m.  The 4mmode24m argument
       indicates how the elements of the list are to be matched  against  4mpat-0m
       4mtern24m and it must have one of the following values:

       1m-exact 22mThe  list  element  must contain exactly the same string as 4mpat-0m
              4mtern24m.

       1m-glob  4m22mPattern24m is a glob-style pattern which is  matched  against  each
              list element using the same rules as the 1mstring match 22mcommand.

       1m-regexp0m
              4mPattern24m  is  treated as a regular expression and matched against
              each list element using the rules  described  in  the  1mre_syntax0m
              reference page.

       If 4mmode24m is omitted then it defaults to 1m-glob22m.


1mKEYWORDS0m
