Browsing Source With sbquery |
25 |
![]() |
The information contained in this chapter pertains mainly to the use of the command line to complete tasks also available from within WorkShop. For more conceptual information on using source browsing, see the online help.
This chapter is organized into the following sections:
Basic Concepts
The command-line interface to the Source Browsing mode of WorkShop is sbquery.
![]() | Type sbquery, followed by any command-line options and their
arguments, followed by the symbol you want to search for.
|
sbquery displays a list of matches that includes the file in which the symbol appears, the line number, the function containing the symbol, and the source line containing the symbol.
By default, sbquery searches for symbols in the database in the current working directory. If you want to browse a database stored in another directory, see Chapter 26, "Controlling the Browser Database With .sbinit."
Command Reference
To obtain a list of the sbquery command-line options:
![]() | Type sbquery at the shell prompt. |
ansi_c
sun_as
sun_c_plus_plus
sun_f77
sun_pascal
Filter Language Options
sbquery -help_filter language
Options
Focus Options
sbquery focus_option symbol
Note - If you include two or more focus options, a match is returned if it is found with any of the supplied focus options.
Environment Variables
Environment variables provide information that affects the operation of sbquery (and of source browsing in WorkShop). For more information on .sbinit, see Chapter 26, "Controlling the Browser Database With .sbinit."