elink-path(1) DG/UX R4.11MU05 elink-path(1)
NAME
elink-path - Resolve a path name using sde resolution rules
SYNOPSIS
elink-path path
elink-path -c prefix sde suffix
DESCRIPTION
The elink-path is used to manipulate pathnames using the elink(5)
resolution rules.
In its normal mode (without -c), this command takes a pathname path
and attempts to apply the elink resolution rules described in
dgsdepathname(3). If they apply, then the transformed pathname is
printed to standard output. If they do not, the original path is
printed to standard output. This is useful for writing scripts that
wish to be SDE environment sensitive. For example, one could write a
Bourne shell script that includes a line like the following:
crt0_path=`elink-path /usr/lib/crt0.o`
When the -c (for create mode) option is supplied, then the tool is
used to generate valid elink texts. The prefix, sde, and suffix
arguments are the elink components described in the
dgsdepathname(3) function man page. The elink-path command prints
the appropriate text for creating an elink to standard output. For
example, typing:
ln -s `elink-path -c .. new_sde usr/lib/crt0.o` crt0.o
would create an elink called crt0.o whose contents are:
../sde/.elink./new_sde/usr/lib/crt0.o
SEE ALSO
sde(5), elink(5), dgsdepathname(3), libsde(3).
Licensed material--property of copyright holder(s)