1shcomp(1)                        User Commands                       shcomp(1)
2
3
4

NAME

6       shcomp - compile a ksh93 shell script
7

SYNOPSIS

9       shcomp [-nv] [infile [outfile]]
10
11
12       shcomp -D [infile [outfile]]
13
14

DESCRIPTION

16       If the -D option is not specified, shcomp takes a shell script, infile,
17       and creates a binary format file, outfile, that ksh93  reads  and  exe‐
18       cutes with the same effect as the original script.
19
20
21       Aliases  are  processed  as the script is read. Alias definitions whose
22       value requires variable expansion will not work correctly.
23

OPTIONS

25       The following options are supported:
26
27       -D              Generate a list of strings that need to be placed in  a
28       --dictionary    message catalog for internationalization.
29
30                       With  this  option,  all double quoted strings that are
31                       preceded by $ are printed, one literal per line. A lit‐
32                       eral  $"foo"  prints "foo" in the output. These are the
33                       messages that need to be translated to locale  specific
34                       versions for internationalization.
35
36
37       -n              Display warning messages for obsolete or non-conforming
38       --noexec        constructs.
39
40
41       -v              Display input from infile onto  standard  error  as  it
42       --verbose       reads it.
43
44

OPERANDS

46       The following operands are supported:
47
48       infile     Specifies  the  name  of  the  file  that contains the shell
49                  script to be used as input.
50
51                  If infile is omitted, the shell script is read from standard
52                  input.
53
54
55       outfile    Specifies the name of the output file.
56
57                  If  outfile  is  omitted,  both modes write their results to
58                  standard output.
59
60

EXIT STATUS

62       The following exit values are returned:
63
64       0     Successful completion.
65
66
67       >0    An error occurred.
68
69

ATTRIBUTES

71       See attributes(5) for descriptions of the following attributes:
72
73
74
75
76       ┌─────────────────────────────┬─────────────────────────────┐
77       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
78       ├─────────────────────────────┼─────────────────────────────┤
79       │Availability                 │SUNWcsu                      │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │CSI                          │Enabled                      │
82       ├─────────────────────────────┼─────────────────────────────┤
83       │Interface Stability          │See below.                   │
84       └─────────────────────────────┴─────────────────────────────┘
85
86
87       The command-line interface and the system variables are Committed.  The
88       compiled  shell  code format is Private. The output of the -D option is
89       Volatile.
90

SEE ALSO

92       ksh93(1), attributes(5)
93
94
95
96SunOS 5.11                        27 Jan 2009                        shcomp(1)
Impressum