Installation guide
If your scripts contain explicit path references to commands that are in
different directories on the DIGITAL UNIX system, you must change these
references to reflect the DIGITAL UNIX locations.
For more information about command differences that could affect porting
your shell script from ULTRIX to DIGITAL UNIX, see Appendix A.
3.2.2 Migrating Korn Shell Scripts
The Korn shell (ksh) is the same on DIGITAL UNIX and ULTRIX systems.
You need not modify your shell scripts.
3.2.3 Migrating C Shell Scripts
The C shell on DIGITAL UNIX systems is the same as the C shell on
ULTRIX systems, with one exception. Because the C shell on DIGITAL
UNIX systems does not support the hashstat built-in command, you must
remove it from the ULTRIX C shell script before you move the script to a
DIGITAL UNIX system. The DIGITAL UNIX system does not have an
equivalent for this command.
3.2.4 Migrating sh Shell Scripts
The Bourne shell on DIGITAL UNIX systems is largely the same as the
Bourne shell on ULTRIX systems. Some differences between the two shells
do exist. The following list describes changes you should make to your
ULTRIX sh scripts or your user environment to port sh scripts to a
DIGITAL UNIX system:
• Check any cd commands.
The DIGITAL UNIX cd command might change your current directory
to one that you do not expect. To avoid this problem, specify only
absolute pathnames as arguments to the cd command.
On DIGITAL UNIX systems, the shell determines whether the
argument you specify to the cd command is a subdirectory of any of the
directories specified in the definition of the CDPATH environment
variable. If the shell finds a subdirectory that matches the argument
you specify, it changes your current directory to that subdirectory. The
ULTRIX sh command does not have this feature.
• Remove the set − command from shell scripts.
The DIGITAL UNIX system does not have the set − command or any
equivalent.
• Modify references to the echo command so that they invoke the
/bin/echo command.
Migrating Your ULTRIX User Environment to a DIGITAL UNIX System 3–5