2 .\" Copyright (c) 1982-2007 AT&T Knowledge Ventures
3 .\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
4 .\" Portions Copyright (c) 2009, Sun Microsystems, Inc.
5 .TH SHCOMP 1 "Jan 27, 2009"
7 shcomp \- compile a ksh93 shell script
11 \fBshcomp\fR [\fB-nv\fR] [\fIinfile\fR [\fIoutfile\fR]]
16 \fBshcomp\fR \fB-D\fR [\fIinfile\fR [\fIoutfile\fR]]
22 If the \fB-D\fR option is not specified, \fBshcomp\fR takes a shell script,
23 \fIinfile\fR, and creates a binary format file, \fIoutfile\fR, that \fBksh93\fR
24 reads and executes with the same effect as the original script.
27 Aliases are processed as the script is read. Alias definitions whose value
28 requires variable expansion will not work correctly.
32 The following options are supported:
40 \fB\fB--dictionary\fR\fR
43 Generate a list of strings that need to be placed in a message catalog for
46 With this option, all double quoted strings that are preceded by \fB$\fR are
47 printed, one literal per line. A literal \fB$"foo"\fR prints \fB"foo"\fR in the
48 output. These are the messages that need to be translated to locale specific
49 versions for internationalization.
62 Display warning messages for obsolete or non-conforming constructs.
75 Display input from \fIinfile\fR onto standard error as it reads it.
81 The following operands are supported:
88 Specifies the name of the file that contains the shell script to be used as
91 If \fIinfile\fR is omitted, the shell script is read from standard input.
100 Specifies the name of the output file.
102 If \fIoutfile\fR is omitted, both modes write their results to standard output.
108 The following exit values are returned:
115 Successful completion.
130 See \fBattributes\fR(5) for descriptions of the following attributes:
138 ATTRIBUTE TYPE ATTRIBUTE VALUE
142 Interface Stability See below.
147 The command-line interface and the system variables are Committed. The compiled
148 shell code format is Private. The output of the \fB-D\fR option is Volatile.
152 \fBksh93\fR(1), \fBattributes\fR(5)