Installation guide
set codesets are not supported on DIGITAL UNIX systems. Therefore, the
following locales are unavailable on DIGITAL UNIX systems:
• ENG_GB.MCS
• ENG_GB.646
• FRE_FR.MCS
• FRE_FR.646
• GER_DE.MCS
• GER_DE.646
On DIGITAL UNIX systems, locales are installed in the
/usr/lib/nls/loc directory. For a list of available locales, see the
Technical Overview.
3.2 Migrating Shell Scripts
In most cases, your shell scripts will port from ULTRIX to DIGITAL UNIX
with few modifications. You might need to modify your shell script because
of differences between DIGITAL UNIX and ULTRIX commands or because
of differences between the shells on DIGITAL UNIX and ULTRIX systems.
3.2.1 Modifying Commands Used in Scripts
A number of commands are different between DIGITAL UNIX and ULTRIX
systems. Most differences are in the options or arguments for a given
command. Some commands operate differently on DIGITAL UNIX systems,
and some ULTRIX commands are unavailable on DIGITAL UNIX systems.
For example, the DIGITAL UNIX test command works differently from
the ULTRIX test command. On a DIGITAL UNIX system, the −f option
makes the test command determine whether a file exists and is a regular
file; that is, the file is not a directory, a character-special file, a
block-special file, or a named pipe. On an ULTRIX system, the −f option
makes the test command determine whether a file exists and is not a
directory. Because of this difference, the test -f command can return
unexpected results on a DIGITAL UNIX system. You can get the effect of
the ULTRIX test -f command on a DIGITAL UNIX system by replacing
the test -f command with the following command:
(test -f file) -o (test -c file) -o (test -b file) -o (test -p file)
By sequentially testing for a regular file (−f), a character-special file (−c), a
block-special file (−b), or a named pipe (−p), this command tests one file
to be sure it is not a directory. The command returns status in the same
way as the ULTRIX test -f command.
3–4 Migrating Your ULTRIX User Environment to a DIGITAL UNIX System