| Debugging a Program With dbx |
Using dbx With the Korn Shell
The
dbxcommand language is based on the syntax of the Korn Shell (ksh 88), including I/O redirection, loops, built-in arithmetic, history, and command-line editing. This chapter lists the differences between ksh-88 anddbxcommand language.If no
dbxinitialization file is located on startup,dbxassumes ksh mode.This chapter is organized into the following sections:
ksh-88 Features Not Implemented
The following features of ksh-88 are not implemented in
dbx:
set-Aname for assigning values to array nameset-oparticular options:allexport bgnice gmacs markdirs noclobber nolog privileged protected virawtypeset-l-u-L-R-Hattributes- backquote (
`...`) for command substitution (use$(...)instead)- [ [ expr ] ] compound command for expression evaluation
@(pattern[|pattern] ...)extended pattern matching- co-processes (command or pipeline running in the background that communicates with your program)
Extensions to ksh-88
dbxadds the following features as extensions:
$[ p -> flags ]language expressiontypeset -qenables special quoting for user-defined functions- csh-like
historyandaliasargumentsset +o pathdisables path searching0xabcdC syntax for octal and hexadecimal numbersbindto change Emacs-mode bindingsset -o hashallset -o ignore suspendprint -eandread -e(opposite of-r, raw)- built-in
dbxcommandsRenamed Commands
Particular
dbxcommands have been renamed to avoid conflicts with ksh commands.
- The
dbxkprint.- The ksh
killcommand has been merged with thedbxkillcommand.- The
aliascommand is the kshalias, unless indbxcompatibility mode.- addr
/fmt is nowexamineaddr/fmt./pattern is nowsearchpattern?pattern is nowbsearchpattern.
|
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |