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