SHCOMP(1) | User Commands | SHCOMP(1) |
shcomp - compile a ksh93 shell script
shcomp [-nv] [infile [outfile]]
shcomp -D [infile [outfile]]
If the -D option is not specified, shcomp takes a shell script, infile, and creates a binary format file, outfile, that ksh93 reads and executes with the same effect as the original script.
Aliases are processed as the script is read. Alias definitions whose value requires variable expansion will not work correctly.
The following options are supported:
-D
--dictionary
With this option, all double quoted strings that are preceded by $ are printed, one literal per line. A literal $"foo" prints "foo" in the output. These are the messages that need to be translated to locale specific versions for internationalization.
-n
--noexec
-v
--verbose
The following operands are supported:
infile
If infile is omitted, the shell script is read from standard input.
outfile
If outfile is omitted, both modes write their results to standard output.
The following exit values are returned:
0
>0
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | Enabled |
Interface Stability | See below. |
The command-line interface and the system variables are Committed. The compiled shell code format is Private. The output of the -D option is Volatile.
January 27, 2009 | OmniOS |