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