home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: OtherApp / OtherApp.zip / 4os225b.zip / UPDAT25.DOC < prev    next >
Text File  |  1994-10-12  |  20KB  |  524 lines

  1.  
  2.  
  3.  
  4.                                   JP Software
  5.  
  6.                            4OS2 Update Documentation
  7.  
  8.                         Version 2.5 -- October 12, 1994
  9.  
  10.    [Copyright 1992 - 1994, JP Software Inc., All Rights Reserved. 
  11.    Published by JP Software Inc., P.O. Box 1470, E. Arlington, MA 02174
  12.    USA, (617) 646-3975.  4OS2, 4OS2/16, and 4OS2/32 are trademarks and 4DOS
  13.    is a registered trademark of JP Software Inc.  OS/2 is a trademark of
  14.    IBM Corporation.  Other product and company names are trademarks of
  15.    their respective owners.]
  16.  
  17.  
  18.    There are dozens of new features in this latest release of 4OS2!  Check
  19.    through this file for a comprehensive list of what's changed since
  20.    version 2.0.
  21.  
  22.    This file does not explain how to use the new features.  Be sure to
  23.    check the Reference Manual or online help for complete details on each
  24.    feature.
  25.  
  26.    Some of the descriptions below may be more detailed than you need; if
  27.    you aren't using a feature, feel free to skip to the next item.  If you
  28.    are new to 4OS2 with version 2.5, you can skip this file entirely, and
  29.    begin with the 4OS2 Introduction and Installation Guide.
  30.  
  31.    This file is divided into the following sections:
  32.  
  33.           General Features and Enhancements
  34.           Startup, Initialization, and 4OS2.INI
  35.           Command Line Editing and History
  36.           Aliases
  37.           Command Changes and Enhancements
  38.           Variables and Variable Functions
  39.           Technical and Compatibility Enhancements
  40.           Bugs Fixed
  41.  
  42.    Major new features and those which affect most users are marked with
  43.    "**" in the lists below.  Other items discuss smaller or more technical
  44.    changes.
  45.  
  46.    This file is formatted at 58 lines per page, and contains form feeds and
  47.    page footers.  It can be viewed with a file viewer such as the 4OS2 LIST
  48.    command, or printed on most PC printers using the command:
  49.  
  50.                   copy updat20.doc prn
  51.  
  52.    Printing it with a program that formats the pages is not likely to work
  53.    due to the formatting included in the file.
  54.  
  55.                                                                (10/94-2.5A)
  56.  
  57.  
  58.  
  59.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 1
  60.  
  61.  
  62.  
  63.                              4OS2 2.5 Change List
  64.  
  65.  
  66.    General Features and Enhancements
  67.    ---------------------------------
  68.  
  69.    => **  The maximum file description length (set with the DescriptionMax
  70.           directive in the .INI file) has been increased to 511 characters.
  71.  
  72.    => **  Colors can now be specified as either digits (0-15) or the color
  73.           name, i.e. "COLOR 15 on 1" for bright white on blue.  This should
  74.           help those who are running out of room for ColorDir
  75.           specifications.  The colors are:
  76.  
  77.               0:  Black               8:   Gray
  78.               1:  Blue                9:   Bright blue
  79.               2:  Green               10:  Bright green
  80.               3:  Cyan                11:  Bright cyan
  81.               4:  Red                 12:  Bright red
  82.               5:  Magenta             13:  Bright magenta
  83.               6:  Brown               14:  Yellow
  84.               7:  White               15:  Bright white
  85.  
  86.    =>     @ATTRIB and the /A:xxx switches on all commands will ignore
  87.           underlines in the attribute string, for example "/A:R_S" is a
  88.           valid switch for the commands which support /A.  This allows you
  89.           to use the results returned by @ATTRIB in a command or another
  90.           call to @ATTRIB.
  91.  
  92.    =>     Added more complete support for decimal and negative numbers in
  93.           DO and IF / IFF comparisons.
  94.  
  95.    =>     Wildcard matching supports "[]" to mean "match only if nothing's
  96.           there."  This is useful for things like:
  97.  
  98.                   dir /i"[]" *.btm
  99.  
  100.           to display only the .BTM files that do NOT have a description.
  101.  
  102.    =>     Date and time ranges have a new option to select the "Last
  103.           Access" (a) or "Created" (c) fields on HPFS and NTFS drives.  For
  104.           example, to select files last accessed yesterday and today:
  105.  
  106.                   /[da-1]
  107.  
  108.    =>     PATH searching uses only semicolons and commas as possible path
  109.           delimiters (formerly it also accepted spaces and tabs).  This
  110.           helps to avoid problems with unquoted HPFS long names in the
  111.           PATH.
  112.  
  113.  
  114.  
  115.  
  116.  
  117.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 2
  118.  
  119.  
  120.    Startup, Initialization, and 4OS2.INI
  121.    -------------------------------------
  122.  
  123.    =>     There is a new startup switch, /LD, to force a local directory
  124.           history.
  125.  
  126.    =>     There are a number of new .INI file directives:
  127.  
  128.               DescriptionName = File:  Filename to use for file
  129.               descriptions, defaults to DESCRIPT.ION.  This is intended
  130.               primarily for BBS sysops who want to use FILES.BBS for file
  131.               descriptions.
  132.  
  133.               DirHistory = nnnn (256):  Size of the directory history in
  134.               bytes, from 128 to 2048.
  135.  
  136.               EvalMax = nnnn (8):  Maximum number of digits after the
  137.               decimal point in values returned by @EVAL (0-8).
  138.  
  139.               EvalMin = nnnn (0):  Minimum number of digits after the
  140.               decimal point in values returned by @EVAL (0-8).  EvalMin
  141.               will be ignored if it is larger than EvalMax.
  142.  
  143.               LocalDirHistory = [Yes|No]:  Sets local or global directory
  144.               history.  The default is Yes for 4DOS, No for 4OS2 and
  145.               4DOS/NT.
  146.  
  147.    =>     PMWIN.DLL and PMSHAPI.DLL are no longer required to load 4OS2. 
  148.           This will make it easier to create bootable floppy disks using
  149.           4OS2.
  150.  
  151.  
  152.    Command Line Editing and History
  153.    --------------------------------
  154.  
  155.    => **  Directory histories are inherited, and can be global, like
  156.           aliases and command history (also see the new LocalDirHistory
  157.           directive in 4OS2.INI).
  158.  
  159.    => **  A Ctrl-Enter while scrolling through command history at the
  160.           prompt will now copy the line to the end of the history list,
  161.           even if you don't alter it.  This allows you to force lines to
  162.           the end of the list for easier recall.
  163.  
  164.    =>     You can prefix a command with either @* or *@ to both disable
  165.           aliases and prevent the command from being stored in the history
  166.           (previously only @* was supported).
  167.  
  168.  
  169.    Aliases and Batch Files
  170.    -----------------------
  171.  
  172.  
  173.  
  174.  
  175.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 3
  176.  
  177.  
  178.    => **  Errors in batch files display the batch file name and the line
  179.           number where the error occurred.  The first line in the file is
  180.           numbered 1.
  181.  
  182.    =>     Added ESC as a synonym for R(est) when you're single-stepping
  183.           through batch files with SETDOS /Y1.
  184.  
  185.  
  186.    Command Changes and Enhancements
  187.    --------------------------------
  188.  
  189.    => **  ATTRIB, COPY, DEL, DESCRIBE, LIST, MOVE, REN, and TYPE all
  190.           support the /A:[[-]rhsda] switch (using same syntax as in DIR). 
  191.           This allows you to process files in a variety of ways based on
  192.           their attributes.
  193.  
  194.    =>     ?:  If you use arguments with a "?" command, it will prompt for
  195.           whether to execute another command.
  196.  
  197.    =>     DIR has several changes:
  198.  
  199.               * Summary totals for files and directories are now listed
  200.               separately.
  201.  
  202.               * /B strips trailing spaces to avoid extra characters in
  203.               redirected output files.
  204.  
  205.               * /E and /L will change the case of NTFS and HPFS filenames.
  206.  
  207.               * /T will no longer suppress the display of descriptions;
  208.               instead, descriptions will be displayed after the attributes.
  209.  
  210.    =>     DRAWBOX supports BRIght FILL colors.
  211.  
  212.    => **  FFIND is a new command for quickly finding files or text within
  213.           files.  It can search anything from a single directory to all the
  214.           disks on your system in a single command, supports wildcards in
  215.           the search text, and offers a range of options to customize the
  216.           search.
  217.  
  218.    =>     FOR has a new /H switch to skip the "." and ".." directory
  219.           entries in a wildcard scan.
  220.  
  221.    =>     INKEY and INPUT have two new switches.  /X skips printing a CR/LF
  222.           after echoing the key or line typed by the user; /D allows only
  223.           digits (0-9) in the input.
  224.  
  225.    =>     INPUT has a new /N switch to disable the display color specified
  226.           by InputColor in the .INI file, and use the default display
  227.           colors.
  228.  
  229.    => **  LIST supports several new options:
  230.  
  231.  
  232.  
  233.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 4
  234.  
  235.  
  236.               * Wildcards can be used in text search strings.  For example
  237.               you can use "to*day" as a search string to find the next line
  238.               with "to" followed by "day" later on the same line, or
  239.               "[14]01" to find the next line containing either "101" or
  240.               "401".  You can disable wildcard searches by prefixing the
  241.               search string with a single backquote [`].
  242.  
  243.               * Pressing "B" (for "back") displays the previous file.  You
  244.               can go all the way back to the first file.
  245.  
  246.               * The file description (if any) is displayed in the "Info"
  247.               box brought up with the "I" key.
  248.  
  249.               * The "G" (goto) command in hex mode prompts for a hex offset
  250.               rather than a line number.
  251.  
  252.               * The P(rint) option asks if you want to print the entire
  253.               file or the current page only.
  254.  
  255.    =>     LOG displays the log file name if you don't enter any arguments.
  256.  
  257.    =>     MOVE has two new switches:  /M only moves files with the archive
  258.           attribute bit set; /V checks that the data is physically
  259.           accessible after the MOVE (like COPY /V).  Also MOVE is slightly
  260.           faster in cases where the target file already exists.
  261.  
  262.    =>     ON ERROR will no longer display the error message before
  263.           executing the specified command.
  264.  
  265.    =>     PROMPT has two new prompt characters, $m and $M, to display the
  266.           time in hours and minutes only.  $m displays in 24-hour format;
  267.           $M uses the default country format.  These are similar to $t and
  268.           $T, but do not display seconds.
  269.  
  270.    =>     REM can create an empty file with the syntax "REM > file";
  271.           previously this did not work if there was a space after "REM".
  272.  
  273.    => **  SELECT has three enhancements:
  274.  
  275.               * The L key will call LIST with the current highlighted
  276.               filename.  This allows you to view a file before deciding
  277.               whether to select it.  Exiting LIST will return you to the
  278.               saved position in SELECT.
  279.  
  280.               * The left and right cursor keys will scroll descriptions
  281.               which are longer than the current screen width.
  282.  
  283.               * The new /H switch will hide the "." and ".." directory
  284.               entries.
  285.  
  286.    =>     SETDOS has three changes:
  287.  
  288.  
  289.  
  290.  
  291.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 5
  292.  
  293.  
  294.               * /B can be used in a batch file to change the bright/blink
  295.               bit.  Previously the bright / blink state was only toggled
  296.               when the prompt was displayed.
  297.  
  298.               * The new /Fx.y switch sets the minimum and maximum decimal
  299.               precision in @EVAL.  Also see @EVAL and the new EvalMax and
  300.               EvalMin directives in the .INI file.
  301.  
  302.               * You can disable all cursor shape changes normally made by
  303.               the command processor by setting either of the /S arguments
  304.               to -1.  This is primarily intended for those with laptops who
  305.               have other programs controlling the cursor shape.
  306.  
  307.    =>     TEE has been rewritten and is much faster.
  308.  
  309.  
  310.    Variables and Variable Functions
  311.    --------------------------------
  312.  
  313.    Enhancements to Existing Variable Functions:
  314.  
  315.    =>     @ATTRIB:  If you only specify the filename, @ATTRIB will now
  316.           return the attributes for that file.  The format is the same as
  317.           that for the ATTRIB and DIR commands: a five-character string of
  318.           the form "RHSAD", with any non-existing attribute bits replaced
  319.           by an underline (e.g. R__A_).
  320.  
  321.    => **  @EVAL now supports integer exponentiation with the "**" operator,
  322.           and decimal precision and rounding.  You can set the precision
  323.           for a single calculation with the construct
  324.           %@EVAL[expression=x.y], where "x" specifies the minimum number of
  325.           decimal digits in the result, and "y" specifies the maximum.  To
  326.           set the default precision for all calculations see SETDOS /F and
  327.           the EvalMin and EvalMax directives in the .INI file.
  328.  
  329.    =>     @FILEOPEN has a third parameter; the new syntax is
  330.           %@FILEOPEN[filename,read|write|append[,b|t]], where "b" means
  331.           open in binary mode, and "t" means open in text mode.  Text mode
  332.           (the default) should be used to transfer text data with @FILEREAD
  333.           (without a read "length", see below) and @FILEWRITE.  Binary mode
  334.           should be used to transfer binary data with @FILEREAD (with a
  335.           read "length") and @FILEWRITEB.
  336.  
  337.    =>     @FILEREAD has an optional second parameter to set the number of
  338.           bytes to read.  The new syntax is @FILEREAD[n[,length]].  If the
  339.           length is not given the next line is read, as in the previous
  340.           version.
  341.  
  342.    =>     @FILES, @FINDFIRST and @FINDNEXT now accept a dash [-] in the
  343.           attribute list.  The dash reverses the meaning of the following
  344.           attribute, for example "-d" means to include all entries except
  345.           subdirectories.
  346.  
  347.  
  348.  
  349.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 6
  350.  
  351.  
  352.    => **  @FINDFIRST / @FINDNEXT have several changes:
  353.  
  354.               * Include lists are now supported.
  355.  
  356.               * The filename passed to @FINDNEXT is ignored, and the name
  357.               passed to the last @FINDFIRST is used instead.
  358.  
  359.               * The "." and ".." directories are no longer returned by
  360.               these functions.
  361.  
  362.               * You must call the new @FINDCLOSE function (see below) after
  363.               the last time @FINDNEXT is called to avoid running out of
  364.               directory search handles.
  365.  
  366.    => **  @WORD has an optional new first argument; the new syntax is
  367.           @WORD[["xxx"],n,string], where "xxx" specifies the delimiters you
  368.           wish to use.  To include a double quote ["] within the delimiter
  369.           string, preface it with an escape character.
  370.  
  371.  
  372.    New Variable Functions:
  373.  
  374.    =>     @COMMA[n]:  Inserts commas (or the "thousands separator"
  375.           character for your country ID) into a numeric string.
  376.  
  377.    =>     @FILESEEKL[handle,line]:  Seeks to the specified line, allowing
  378.           you to do a subsequent @FILEREAD[] without having to loop through
  379.           the lines first.
  380.  
  381.    =>     @FILEWRITEB[handle,length,string]:  Writes the specified string
  382.           to the file; does not append a trailing CR/LF.
  383.  
  384.    =>     @FINDCLOSE[filename]:  Closes the search handle opened by
  385.           @FINDFIRST.  Must be used after the last time @FINDNEXT is called
  386.           to avoid leaving a directory search handle open.
  387.  
  388.    =>     @FORMAT[[-][n][.n],string]:  Formats a string by padding or
  389.           truncating it to a specified length, with right or left
  390.           justification.
  391.  
  392.    =>     @IF[condition,true,false]:  Returns the "true" parameter if the
  393.           condition is true, or the "false" parameter if it is false.  The
  394.           conditions are the same as those for the IF command.  For
  395.           example, %@IF[2==2,Correct!,Oops!] will return "Correct!".
  396.  
  397.    =>     @MAKEAGE[date[,time]]:  Returns a number in the same format as
  398.           the %@FILEAGE function.  This allows you to compare the age of a
  399.           file to a specific date, for example:
  400.  
  401.                   if %@fileage[file1] lt %@makeage[10-1-94,12:00] echo Old!
  402.  
  403.  
  404.  
  405.  
  406.  
  407.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 7
  408.  
  409.  
  410.    =>     %@REXX[expression] calls the REXX interpreter to execute the
  411.           expression, returning the result.  If you precede the expression
  412.           with an "=" sign, @REXX will parse the expression and do variable
  413.           expansion, but will not execute it.  In this case the expanded
  414.           value is returned, for example "%@REXX[=date()]" returns "1 June
  415.           1994".
  416.  
  417.    =>     @TIMER[n]:  Returns the current split time for the specified
  418.           timer started with the TIMER command.  "n" can be 1, 2, or 3.
  419.  
  420.    =>     @WORDS[["xxx"],string]:  Returns the number of words in the
  421.           specified string.  The optional first argument is a list of
  422.           delimiters as in @WORD (see above).
  423.  
  424.  
  425.    New Internal Variables:
  426.  
  427.    =>     _BATCHLINE:  Returns the current line number in the current batch
  428.           file.  The first line is numbered one.
  429.  
  430.    =>     _BATCHNAME:  Returns the full path name of the current batch
  431.           file.
  432.  
  433.    =>     _DNAME:  Returns the name of the description file.  The default
  434.           is DESCRIPT.ION; the name can be changed with the DescriptionName
  435.           directive in the .INI file.
  436.  
  437.    =>     _KBHIT:  Returns 1 if a keystroke is waiting in the keyboard
  438.           buffer; 0 if not.
  439.  
  440.    =>     _PIPE:  Returns 1 if the current process is running inside a
  441.           pipe; 0 if not.
  442.  
  443.  
  444.    Technical and Compatibility Enhancements
  445.    ----------------------------------------
  446.  
  447.    =>     F1 will now skip past a leading "*" or "@" on the command line
  448.           when looking for the command name.  This allows you to use
  449.           context-sensitive help even when the command is prefaced with "*"
  450.           or "@".
  451.  
  452.    =>     Improved support for applications which start a REXX file and
  453.           make 4OS2 calls from within the REXX file.
  454.  
  455.    =>     Modified 4OS2/32 to work around problems with DIR, SELECT, and
  456.           related functions under PC-NFS and the ZipStream and TVFS
  457.           installable file systems.
  458.  
  459.    =>     Worked around some problems in PC-NFS which caused trouble with
  460.           filename completion on NFS drives.
  461.  
  462.  
  463.  
  464.  
  465.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 8
  466.  
  467.  
  468.    Bugs Fixed
  469.    ----------
  470.  
  471.    =>     An INKEY /K would disable a wait (/W) once a key had been hit,
  472.           regardless of whether the key was in the /K list.
  473.  
  474.    =>     Batch file line prompting (SETDOS /Y1 and the new ? "xxx"
  475.           command) would prompt even if you were using a pipe and were
  476.           unable to respond.  Now it only prompts if input is coming from
  477.           the console.
  478.  
  479.    =>     Fixed a problem with multiple nested .AND.'s and .OR.'s in an IF
  480.           / IFF statement.
  481.  
  482.    =>     SET /R and ALIAS /R line continuation did not always work
  483.           properly.
  484.  
  485.    =>     CHCP was not displaying the code page information properly under
  486.           4OS2/32.
  487.  
  488.    =>     COPY was deleting the target file if the source file had extended
  489.           attributes and the target file system didn't support them.  COPY
  490.           now displays an error message but retains the target file,
  491.           without its EAs.
  492.  
  493.    =>     COPY had several glitches when copying to and from named pipes.
  494.  
  495.    =>     DETACH now handles redirection (|, <, >) and conditional commands
  496.           (&&, ||) properly.
  497.  
  498.    =>     LIST had trouble when piping a large file to LIST /S.
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.    4OS2 2.5  [10-12-94]           UPDAT25.DOC                        page 9
  524.