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

List substitution

Certain Deskshell commands generate text output. These may be used directly, without requiring a separate process, using the form:

   var=`(basename $list)
which sets var to a list of the basenames of the files in $list without requiring another process to be run.

Functions can also generate text output for direct use using:

   `(myfunction arg1)
or
   `myfunction
Command and list substitutions may be nested to any depth.

See also:


Next topic: Concatenation
Previous topic: Command substitution

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