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

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