DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Writing Deskshell commands

List mark

Deskshell commands which take lists as arguments, for example list intersect and list count, use the list mark ``::'' to separate each argument.

For example:

   list count a b c :: d e f g
gives the result:
   ( 3 4 )

If the list mark ``::'' was not included, for example in the form:

   list count $list1 $list2
the result would be a single value, as the values of the two variables would combine to become a single list.

See also:


Next topic: Conditionals
Previous topic: Pipelines

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003