Debugging a Program With dbx |
Using dbx With the Korn Shell
The
dbx
command 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 anddbx
command language.If no
dbx
initialization file is located on startup,dbx
assumes 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
-A
name for assigning values to array nameset
-o
particular options:allexport bgnice gmacs markdirs noclobber nolog privileged protected viraw
typeset
-l
-u
-L
-R
-H
attributes- 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
dbx
adds the following features as extensions:
$[ p -> flags ]
language expressiontypeset -q
enables special quoting for user-defined functions- csh-like
history
andalias
argumentsset +o path
disables path searching0xabcd
C syntax for octal and hexadecimal numbersbind
to change Emacs-mode bindingsset -o hashall
set -o ignore suspend
print -e
andread -e
(opposite of-r
, raw)- built-in
dbx
commandsRenamed Commands
Particular
dbx
commands have been renamed to avoid conflicts with ksh commands.
- The
dbx
kprint
.- The ksh
kill
command has been merged with thedbx
kill
command.- The
alias
command is the kshalias
, unless indbx
compatibility mode.- addr
/
fmt is nowexamine
addr/
fmt./
pattern is nowsearch
pattern?
pattern is nowbsearch
pattern.
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |