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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 26 May 2005