Converting an Old .dbxinit File into a .dbxrc File

Related Topics:

Creating a .dbxrc File

The .dbxrc file uses KornShell syntax; old-style dbx aliases do not work in a .dbxrc file.

To convert your old .dbxinit file into a .dbxrc file:

1. Append the contents of your .dbxinit file to your .dbxrc file

2. Remove (or rename) your .dbxinit file.

3. Change alias name to dalias name, or alias name to alias name=definition.

If you routinely use newer and older releases of dbx, you might wish to retain your .dbxinit file and add uses of new functionality to a .dbxrc file that sources your .dbxinit file.

To read in the existing .dbxinit file, if any, you must assume that old-style aliases may be found, so you must temporarily redefine alias:

kalias alias=dalias
if [ -r .dbxinit ]
then source .dbxinit
elif [ -r $HOME/.dbxinit ]
then source $HOME/.dbxinit
fi
kalias alias=kalias