xref: /titanic_44/usr/src/lib/libshell/common/OBSOLETE (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1.sp 3
2.tl ''Ksh Features That Are Obsolete in Ksh93''
3.sp 2
4.AL 1
5.LI
6Using a pair of grave accents \^\fB\(ga\fR ... \fB\(ga\fR\^
7for command substition.  Use \fB$(\fR ... \fB)\fR instead.
8.LI
9.B FCEDIT
10is an obsolete name for
11the default editor name for the
12.B hist
13command.
14.B FCEDIT
15is not used when
16.B HISTEDIT
17is set.  Use
18.B HISTEDIT
19instead.
20.LI
21The newtest (\fB[[\fR ... \fB]]\fR) operator
22\fB\-a\fP \fIfile\fP
23is obsolete.  Use
24\fB\-e\fP instead.
25.LI
26The newtest (\fB[[\fR ... \fB]]\fR) operator
27.BR = ,
28as used in
29\fIstring\fP \fB=\fP \fIpattern\fP
30is obsolete.  Use
31\fB==\fP instead.
32.LI
33The following obsolete arithmetic comparisons are also permitted:
34.in +5
35.VL 20
36.LI "\fIexp1\fP \fB\-eq\fP \fIexp2\fP"
37True, if
38.I exp1
39is equal to
40.IR exp2 .
41.LI "\fIexp1\fP \fB\-ne\fP \fIexp2\fP"
42True, if
43.I exp1
44is not equal to
45.IR exp2 .
46.LI "\fIexp1\fP \fB\-lt\fP \fIexp2\fP"
47True, if
48.I exp1
49is less than
50.IR exp2 .
51.LI "\fIexp1\fP \fB\-gt\fP \fIexp2\fP"
52True, if
53.I exp1
54is greater than
55.IR exp2 .
56.LI "\fIexp1\fP \fB\-le\fP \fIexp2\fP"
57True, if
58.I exp1
59is less than or equal to
60.IR exp2 .
61.LI "\fIexp1\fP \fB\-ge\fP \fIexp2\fP"
62True, if
63.I exp1
64is greater than or equal to
65.IR exp2 .
66.LE		\"	End .VL
67.in -5
68.LI
69Using test -t or [ -t ] without specifying the file unit number.
70.LI
71The
72.B \-k
73option to the \fBset\fR builtin is obsolete.  It causes
74.I all\^
75variable assignment arguments are placed in the environment,
76even if they occur after the command name.
77The following
78first prints
79.B "a=b c"
80and then
81.BR c :
82There is no alternative.
83.LI
84The obsolete
85.B \-xf
86option of the
87.B typeset
88command allows a function to be exported
89to scripts that are executed without a separate
90invocation of the shell.
91Functions that need to be defined across separate
92invocations of the shell should
93be placed in a directory and the
94.B FPATH
95variable should contains the name of this directory.
96They may also
97be specified in the
98.B ENV
99file with the
100.B \-xf
101option of
102.BR typeset .
103.LI
104The shell environment variable
105.B FCEDIT
106is obsolete.  Use
107.B HISTEDIT
108instead.
109.LI
110In the
111.B \-s
112option
113(to \fBfc\fR or \fBhist\fR command???)
114(
115and in obsolete versions, the editor name
116.B \-
117)
118is used to skip the editing phase and
119to re-execute the command.
120.LI
121The
122.B \-t
123option to \fBalias\fR builtin is is obsolete.  It
124is used to set and list tracked aliases.
125There is no replacement.
126.LI
127The shell command line option
128.B \-t
129is obsolete.  This option cause the shell to exit after reading
130and executing one command.  The is no replacement (although ending
131\&"command" with the exit builtin should have the same effect).
132.LI
133As an obsolete feature of the "set" builtin,
134if the first
135.I arg\^
136is
137.B \-
138then the
139.B \-x
140and
141.B \-v
142options are turned off and the next
143.I arg
144is treated as the first argument.
145Using
146.B \+
147rather than
148.B \-
149causes these options to be turned off.
150These options can also be used upon invocation of the shell.
151.LE
152
153