ACC SHELL

Path : /usr/share/doc/packages/ksh/
File Upload :
Current File : //usr/share/doc/packages/ksh/OBSOLETE



                                   - 1 -



                  Ksh Features That Are Obsolete in Ksh93



         1.  Using  a  pair  of  grave  accents ` ... ` for command
             substition.  Use $( ... ) instead.

         2.  FCEDIT is an obsolete name for the default editor name
             for  the  hist  command.   FCEDIT  is  not  used  when
             HISTEDIT is set.  Use HISTEDIT instead.

         3.  The newtest ([[ ... ]]) operator -a file is  obsolete.
             Use -e instead.

         4.  The  newtest ([[ ... ]]) operator =, as used in string
             = pattern is obsolete.  Use == instead.

         5.  The following obsolete arithmetic comparisons are also
             permitted:

                  exp1 -eq exp2       True,  if  exp1  is  equal to
                                      exp2.

                  exp1 -ne exp2       True, if exp1 is not equal to
                                      exp2.

                  exp1 -lt exp2       True,  if  exp1  is less than
                                      exp2.

                  exp1 -gt exp2       True, if exp1 is greater than
                                      exp2.

                  exp1 -le exp2       True, if exp1 is less than or
                                      equal to exp2.

                  exp1 -ge exp2       True, if exp1 is greater than
                                      or equal to exp2.

         6.  Using  test  -t  or [ -t ] without specifying the file
             unit number.

         7.  The -k option to the  set  builtin  is  obsolete.   It
             causes all variable assignment arguments are placed in
             the environment, even if they occur after the  command
             name.   The  following  first prints a=b c and then c:
             There is no alternative.

         8.  The obsolete -xf option of the typeset command  allows
             a function to be exported to scripts that are executed
             without a separate invocation of the shell.  Functions
             that need to be defined across separate invocations of
             the shell should be placed  in  a  directory  and  the
             FPATH  variable  should  contains  the  name  of  this
             directory.  They may also be specified in the ENV file








                                   - 2 -



             with the -xf option of typeset.

         9.  The  shell  environment  variable  FCEDIT is obsolete.
             Use HISTEDIT instead.

        10.  In the -s option (to fc or hist command???)  ( and  in
             obsolete versions, the editor name - ) is used to skip
             the editing phase and to re-execute the command.

        11.  The -t option to alias builtin is is obsolete.  It  is
             used  to  set  and  list tracked aliases.  There is no
             replacement.

        12.  The shell command line option -t  is  obsolete.   This
             option  cause  the  shell  to  exit  after reading and
             executing  one  command.   The   is   no   replacement
             (although  ending  "command"  with  the  exit  builtin
             should have the same effect).

        13.  As an obsolete feature of the "set"  builtin,  if  the
             first  arg  is - then the -x and -v options are turned
             off and the next arg is treated as the first argument.
             Using  +  rather  than  -  causes  these options to be
             turned off.  These  options  can  also  be  used  upon
             invocation of the shell.



































ACC SHELL 2018