Hamilton C shell(tm) for Windows NT(tm)  Release Notes 2.2.62
Copyright (c) 1989-1995 by Hamilton Laboratories.  All rights reserved.


Change Summary

The basic release history for the C shell has been:

   Dec 1988    1.0   First release, running on OS/2 1.0.
   Jan 1989    1.01  Cleanup and final release for OS/2 1.0.
   Feb 1989    1.02  First release for OS/2 1.1 (Presentation Manager).
   Mar 1989    1.03  Cleanup and base release for OS/2 1.1.
   Aug 1989    1.04  Command line editing and filename and command
                     completion added.
   Mar 1990    1.05  Support for OS/2 1.2, HPFS and long filenames added
                     along with many important utilities including grep,
                     diff, head, tail, sed, etc.
   Feb 1991    1.06  Support for user-defined screen colors, inheritable
                     local variables, higher performance, etc.
   Jul 1992    2.0   First release from a unified codebase supporting
                     OS/2 and Windows NT.
   Apr 1993    2.1   Support for Berkeley mode scripts, better error
                     diagnostics, support for Windows NT March beta.
   Sep 1993    2.2   Complete rebuild for Windows NT final release.
                     Support for starting Win3.x apps seamlessly from
                     the command line under OS/2 2.x.  Addition of the
                     cron utility.

Along the way, Hamilton C shell has grown from about 35,000 lines of C
to more than 125,000 lines.  All of it has been created from scratch by
Hamilton Laboratories.  Not one line was ported from or written on anything
but OS/2 or Windows NT.

This document will contain a detailed summary of all the changes made
along the way from one release to another, beginning with the initial 2.0
release for NT.  Changes which only affect certain builds (e.g., OS/2) are
so indicated.

Changes are presented chronologically, so if you're updating from a previous
release, you'll want to jump in somewhere in the middle to start reading.

At the very end of this document is a short list of the known bugs and
limitations.  You'll also find contact information in case you encounter a
problem or have a suggestion.


Fix Level 2.0 Changes:

1.  First release from a new unified codebase from which both OS/2
    and Windows NT versions can be built.

2.  The shell and all the utilities have been fixed so they no longer
    routinely translate a filename to lower case before trying to open it.
    That didn't work in situations with an NFS network connection to a UNIX
    system with case-sensitive filenames.


Fix Level 2.0.a Changes:

3.  [OS/2] The 2.0 version of ls wasn't adding up the allocated sizes of
    directories properly when using the -Lw options.  It does now.


Fix Level 2.0.b Changes:

4.  [OS/2] The C shell can now be run when escaping to the command line from
    the OS/2 1.x and 2.0 installation disks.

5.  [NT/MIPS] Final cleanup on the C shell codebase to make it portable to
    the MIPS RISC processor under NT.

6.  [NT] Trying to run a .bat or .cmd file started cmd.exe, but didn't
    actually run the script.  It does now.

7.  [NT/x86]  A codegen error in the compiler caused :s/.../.../ operations
    to trash the heap, causing the C shell to crash randomly.

8.  [NT] A minor bug in the common routines used to read number pad
    keystrokes was fixed.

9.  [NT] A number of bugs in tar.exe that caused it problems opening new
    tar files and setting or reporting timestamps on files extracted from or
    listed in a tar file were fixed.

10. [NT] More no longer fails with a complaint that it can't scroll or
    fill the console if, e.g., you go to the end of a file, page down and
    then search backward for text that's not found.  The console api's were
    erroneously reporting failures when in fact they worked fine.


Fix Level 2.0.c Changes:

11. [NT] The common screen painting library used by the shell and a number of
    the utilities would sometimes set the cursor incorrectly if scrolling was
    involved.  It should now be correct.

12. [NT] cut.exe couldn't read files specified on the command line.  It can
    now.

13. The di (diff interative) alias for diff -b! (merged diff using color,
    ignoring white space differences) has been added to startup.csh and the
    definition for the mi (more interactive) alias has been fixed for NT.

14. [NT] ver.csh was added to the bin directory.

15. [NT] The common keyboard routines now recognize ctrl-H as the same as a
    backspace and ctrl-[ as an escape.


Fix Level 2.0.d Changes:

16. A long-standing bug in the shell's command line editing routines that
    could cause the screen to be painted incorrectly has been corrected.

17. [NT] A bug in the common seek logic used in tar, tail, and xd caused them
    to have problems reading files that came in over a pipe on stdin.  That
    problem has been fixed.  binedit, more, sed and tee used the same logic
    and were recompiled even though they were unaffected.

18. A long-standing, but usually benign bug in the more filter's ISAM
    mechanism was fixed.

19. The shell no longer complains under NT nor fails under OS/2 if one tries
    to edit a history reference (e.g., with !!:s/X/Y/) that's > 64K.

20. [OS/2] dskwrite now properly detects and autoformats any unformatted
    disks it's given as disks 2 or following when using dskwrite -ac.

21. The sizeof sample script has been improved to run a bit faster and to
    avoid problems running out of memory in the C shell if a big directory
    is being measured.


Fix Level 2.0.e Changes:

22. [NT] The common keyboard routines have been fixed to silently gobble up
    CapsLock keystrokes.  They were being passed through to the application.
    The shell, mv, cp, rm and more were affected.

23. [NT] The help screens for label, more and tar and for the internal
    commands hashstat, kill and ps have been edited to replace references
    to OS/2 with NT.

24. eval -h now indicates "success" as its return value.  (It no longer
    causes a loop to exit.)

25. [NT] The C shell no longer litters the output generated by the setenv
    command with current directory variables such as "=C:".  Also, it now
    correctly reads all current directories out of the environment at
    startup.

26. [NT] The C shell now properly treats environmental variable names as
    case-insensitive.  (They're still case sensitive under OS/2.)  The set,
    unset and @ statements are case-sensitive (that's so you can still create
    shell variables that differ from environmental variables only by case)
    but the setenv and unsetenv statements and $var and other variable
    references first try case-sensitive, then case-insensitive variable
    lookups.


Fix Level 2.0.f Changes:

27. [NT] The NT version of the C shell can now determine, just as the OS/2
    version can, whether a child will run in the same or a different window.
    If it's a different window, the shell immediately prompts for a new
    command.

28. [NT] hlabel.exe now includes a warning in the help screen that setting the
    volume label is disabled under NT due to a kernel limitation.  Also, it
    properly gives an error message if you type "label a:foo".


Fix Level 2.0.g Changes:

29. [NT/x86] rm -x was broken in the 2.0.e build when we switched to the July
    SDK compiler; the optimizer generated bad code that we didn't spot.
    Rebuilding with optimization turned off with pragmas fixed the problem.


Fix Level 2.0.h Changes:

30. All the utilities have been cleaned up in preparation for the 32-bit
    release for OS/2 2.0.

31. binedit, chmod, dim, fgrep and head no longer routinely translate
    filenames to lower case, thus avoiding any problems with mixed-case
    filesystems.

32. [OS/2] more no longer has problems forward or backward searching across
    more than 32,000 lines.

33. When moreh [OS/2] or hmore [NT] recognizes that it's reading from a
    file, meaning it can use seeks to re-read any data it discards, it
    now buffers only a 100K window into the file.  That reduces swapping
    under OS/2 and dramatically improves heap performance under NT without
    sacrificing functionality.

34. [NT] The C shell now correctly recognizes that it must wait for DOS apps
    to complete before prompting for another command.

35. [NT] The C shell now responds to Close events from the pull-down on its
    window.


Fix Level 2.0.i Changes:

36. [OS/2] markexe now understands how to mark 32-bit 2.0 applications.

37. The ts.csh script was broken when quoting rules inside a backquoted
    string were changed at release 1.06 but went unnoticed until now.
    The fix was to delete the now superfluous escaped single quotes.

38. If filename completion matched a file with a ! in the name, it wouldn't
    always escape it.  Sometimes it'd just single quote it, causing it to
    be mistaken for a history reference.

39. des had a couple bugs.  Under NT, it would often fail with a divide by
    zero due to improper initialization.  And under both NT and OS/2, it
    didn't handle EOF if data was being read from stdin properly.  Both
    problems have been fixed.


Fix Level 2.0.j Changes:

40. [OS/2] Since there's no .. entry in the root of a FAT drive, cd .. there
    wouldn't work.  Instead, the C shell would try cd'ing to one of the CDPATH
    directories.  It now does the right thing.


Fix Level 2.0.k Changes:

41. [OS/2] The change to markexe at 2.0.i broke it, causing markexe to garble
    the .exe header.  It now works as it should.


Fix Level 2.0.L Changes:

42. [NT] Complete rebuild of everything for the October Beta version of NT.

43. [NT] Background children are now protected from ^C in a console window
    using the new CREATE_NEW_PROCESS_GROUP option to the CreateProcess api.
    Also, the kill command now uses, by default, the new GenerateConsole-
    CtrlEvent api call to send a ^Break to a child.  The advantage is that
    if the child is willing to accept it, links to any DLL's are closed
    properly.

44. [NT] Support for the new shutdown and logoff signal events has been
    added, allowing copies of the C shell to automatically exit when
    shutdown or logoff is selected from the Program Manager.

45. [NT] Support for the new LocalTime notion has been added to the date
    and ls utilities.

46. Additional work has been done on all the utilities and the shell in
    particular to prepare for a full 32-bit OS/2 2.0 release from one common
    source base.

47. [NT] The -s option to fgrep and grep didn't work.  It does now.

48. [OS/2] A number of bad semaphore races were inadvertently introduced
    when support for NT was added at release 2.0.  Apparently, they never
    caused problems (none were ever reported) but, in any event, they are
    fixed now.


Fix Level 2.0.m Changes:

49. [NT] The built-in sleep command no longer forgets to close its open
    thread handle.  Previously, after running sleep roughly 5000 times, it'd
    fail, claiming it couldn't start a new thread.

50. [NT] The -i (interactive) option for mv, cp and rm now works.

51. [NT] Minor changes were made to the shell to prepare it for the DEC
    Alpha version of NT.

52. [NT] Support for LocalTime has been added to the touch utility.

53. [NT] The NTVersion (NT Build number) and WinVersion built-in variables
    have been added and used in the ver.csh script.

54. A new -u (unbuffered) option has been added to the C shell to allow
    it to be used over a communications line.

55. First release of a demo version of the shell and all its utilities.


Fix Level 2.0.n Changes:

56. [NT] Split was broken.  It works now.


Fix Level 2.0.o Changes:

57. [NT] If an ordinary foreground child process was started, wait would not
    work; it'd think the child never completed.  It works now.

58. [NT] ^C now properly kills nested C shell scripts.  Previously, ^C only
    worked if it happened to come in while the top-most level was running.

59. [NT] The shell could trap in certain situations, usually involving labels.
    For example, the one-line script, "foo: echo hello", would trap.  It
    works now.

60. [NT] If the current directory on the current drive was changed in a
    script or other thread, the shell wouldn't properly set it back for child
    processes created from other threads.  That's been fixed.

61. The w option to a search/replace operation in sed was broken.  It's now
    working.

62. [NT] The w command to sed didn't know how to open a file that didn't
    already exist.  It does now.

63. [NT/MIPS] The search/replace command to sed often failed due to datatype
    misalignment in the compiled sed script.  That's been fixed.

64. [NT] The shell now issues an error message if an attempt is made to pass
    a command line longer than 32,282 characters (the limit for the NT
    CreateProcess call) to a child.

65. The fullpath function now knows not to let .. segments back up over the
    system or resource names in a UNC (network) name.  Also, the driveno
    function now reports an error if its argument has an invalid drive
    specification or is a UNC name.

66. The shell now runs logout.csh scripts properly.  A primordial bug caused
    it to issue a prompt if it found a logout.csh script (it shouldn't have)
    and run just the first statement.

67. [NT] Erroneous statements like "cat >" (i/o redirection with no filename
    following) no longer cause the shell to crash.  (Actually, this bug has
    been in the OS/2 version all along also but just didn't happen to cause
    problems.)

68. [NT] File sharing or other errors that prevented a file from being copied
    are now reported by cp and mv.  Previously, the copy would fail, but
    there'd be no warning.


Fix Level 2.0.p Changes:

69. Rerunning a statement that set any of the colors variables to a literal
    (e.g., "for i = 1 to 10 do setenv COLORS = black on white; end") used to
    cause a trap.  It works now.

70. Escape characters in a substitution containing command or variable
    subsitutions that were edited to produce more than one word were not
    correctly processed.  E.g.,

         echo "`echo a b`:s/a/A/^""

    produced:

         A b^"

    It should have produced (as it does now):

         A b"

71. A long-standing, but only recently reported bug that could cause traps
    and assert failures doing a cd +c to a subdirectory on another drive
    has been found and corrected.

72. unset'ing or unsetenv'ing a non-existent variable is no longer treated
    as an error.

73. [NT/Alpha] First release with support for the DEC Alpha processor.

74. [OS/2 2.0] First build with complete, working, debugged support for
    use of 32-bit code and the 32-bit API's under OS/2 2.0.

75. [NT] The SHELL variable, if wasn't already defined in the inherited
    environment, would be set to the pathname of the C shell, but with the
    last character dropped.  This has been fixed.

76. ls.exe now accepts a -q (quiet) option, telling ls not to complain
    about non-existent files.  Also, it's more consistent when it does
    complain.  (Previously, it would not complain if it was asked to look
    for an "impossible" name, e.g., a long filename on a FAT drive.)  ls
    also now looks for an LSOPTIONS environmental variable.

77. sed will now ignore Ctrl-Z characters between statements in a script.
    This change lets it process scripts created with editors that insist
    on pasting a Ctrl-Z (EOF) character onto the end of the files they
    produce.

78. [NT] The help alias has been deleted from startup.csh.  It really
    applied only to OS/2.

79. [NT] The cl.csh (compile and link) and makecpgm.csh (make all the C
    programs) scripts have been added to the samples directory along with
    a sample skip file containing fragments of lines that should be skipped in
    the compiler/linker output.


Fix Level 2.0.q Changes:

80. [NT & OS/2 2.0] A very minor performance improvement was made, eliminating
    some unnecessary checks for stack overflow.  (The check was superfluous
    because under NT and 2.0, the system grows the stack automatically as
    needed anyway.)

81. The popup that appears if an internal assertion fails in the C shell
    now goes away, showing what was underneath it, when you press a keystroke.


Fix Level 2.0.r Changes:

82. Minor fixups were done to the C shell, patchlnk, dskread, dskwrite,
    markexe and setrows to allow demo versions to be built for OS/2.

83. The cookie passed to demo versions of the utilities now expires
    more slowly.  Previously, the cookie expired too fast to allow the
    utilities demos to be run reliably from a CD-ROM.

84. [NT] A typo in the kill -h help screen was corrected.

85. [NT/x86] A compiler optimization bug in rm, mv, and cp that affected
    recursive operations against directories has been fixed by turning off
    certain optimizations where the problem occurred.

86. [NT] pwd now exits with a correct return code of 0 if it's successful.
    Also, it now reports an error if asked for the current directory on an
    invalid drive.


Fix Level 2.0.s Changes:

87. [NT] ps was incorrectly reporting running threads as zombies and zombies
    (threads that had ended but which hadn't been cleaned up yet) as running.
    That's been fixed.


Fix Level 2.0.t Changes:

88. [NT] touch didn't properly recognize 4-digit year numbers.  It does now.

89. [NT] ls and pwd didn't properly interpret the MIXEDCASEDRIVES variable
    (off-by-one error).  Also, the shell and pwd didn't show current
    directories in the right case on mixed case drives.

90. [NT] The cl.csh script in samples directory didn't work properly with the
    DEC Alpha compiler; it does now.  Also, it's been enhanced to look for the
    skip file in the same directory with the cl.csh script.

91. [NT] If a child of the C shell changed the console mode (e.g., disabling
    processed input, thus turning off Ctrl-C processing) but didn't reset
    things before exiting, it could affect the shell.  That's been fixed; now
    the C shell resets the console mode every time it prompts for a new
    command from the keyboard.


Fix Level 2.0.u Changes:

92. [NT] The C shell now ensures that the drive letters passed to the NT
    kernel for the current directories are always upper case.  Lower case
    drive letters have been found to be a problem when spawning POSIX
    children.


Fix Level 2.0.v Changes:

93. The C shell now supports command and variable substitution in <<-style
    inline i/o ("here" documents).  Quoting (with single, double or back
    quotes) or escaping any part of the word immediately following the <<
    operator suppresses the substitutions.

94. Error reporting is now substantially improved.  Messages will now show
    the line number of the statement that failed, not where it was called
    from even if it was inside a user-defined procedure.  Also, by default,
    the shell will print out a complete trace of the call stack showing
    arguments passed to procedures, scripts, eval statements, etc., all the
    way down the stack.  (To suppress call stack dumps, invoke the C shell
    with the new -t option.)

95. A new mode that provides more strict compatibility with the original
    BSD C shell has been added.  Triggered by trying to run a script that
    starts with #!/bin/csh or if the shell is invoked with the new -B
    option, the C shell will attempt to process statements in a more fully
    Berkeley-compatible fashion.  (Scripts that do not start with #!/bin/csh
    will still be processed according to Hamilton C shell rules, even if
    the -B option is used to request Berkeley compatibility interactively.)
    In BSD compatibility mode:

   a. The status variable will reflect the return code from the rightmost
      stage of a pipeline.  The tailstatus variable will be ignored.
   b. All the shell variables will be snapshotted and all new variables
      made local to the thread.
   c. Berkeley-style $var[...] indexing notation will be used, where the
      indexing is by word selection operators (like the :-editing operators)
      rather than by expression.
   d. All variable arrays (except argv) will start with element 1.
      Accessing element 0 will give a null.
   e. $0 or $argv[0] will be the scriptname.  $argv will be the rest of the
      argument vector.  The bsdargv variable will be ignored.
   f. The # character will not need to be followed by white space to be
      considered the start of a comment.
   g. The patterns in a case test (inside a switch) will be strings and need
      not be quoted, rather than arbitrary expressions.  Also, the switch
      value is evaluated as a wordlist which may contain variable or command
      substitutions and wildcards and then rendered as a string.
   h. endif and endsw will be predefined aliases for end (but only when
      closing an if or switch, respectively).  breaksw will be a pre-defined
      alias for break.
   i. "set foo" and "setenv foo" will set foo to a null string, not dump
      its value.
   j. / and /= will perform integer division.
   k. The right operand of the =~ and !~ pattern matching operators will be
      taken as a word which may contain wildcards.
   l. In an expression, a variable must be preceded by $.  If it doesn't, it'll
      be taken as a literal string.

    The changes should allow most scripts to run without problems.  However,
    there will still be a few differences:

   a. The escape character will still be controlled by the escapesym
      variable (shared across all threads), which defaults to ^, not \.
   b. Environmental variables will still be shared.  Changing them in a
      script will change them as seen by the parent.
   c. The special meaning of several break statements on one line will
      not be supported.
   d. unset and unsetenv still do not accept patterns.
   e. The following commands are not supported: bg, exec, fg, glob, jobs,
      limit, nice (but eval gives similar functionality), nohup, notify,
      stop, suspend, unlimit and %job.
   f. History references inside alias definitions will still not be
      supported.
   g. The (...) construct will isolate only the current directory, not all
      variables and other state information.

96. Running a statement in the background using the & flag at the end of the
    line will cause a new "job ID" number rather than a thread ID to be
    printed.  Any threads, processes or screens spawned by that thread will
    inherit that same job ID.  The job ID can be passed to the kill command
    to kill everything associated with that background job.  Also, the ps
    command has been enhanced to show job ID numbers.

97. $* is now supported as an alias for $argv.


Fix Level 2.0.w Changes:

98. A number of minor problems associated with supporting substitutions
    inside <<-style inline i/o documents were fixed:  a) If there was a syntax
    error, the prompt would not be properly reset to prompt1.  b) Single and
    double quotes should have been treated as ordinary characters in inline
    i/o.  (To quote something, only the escape character can be used.)
    c) Any line containing a substitution caused a blank line to be added
    to the history list.  d) If a substitution was at the end of a line, an
    extra space was erroneously added.

99. [NT] The sleep command left a thread entry lying around in the threads
    list after it had already exited.  It's now properly cleaned up.

100. Filename completion with ^F did not quote special characters if there was
    only a partial match.  It does now.

101. Doing a "sed '#'" caused a segment fault.  It now works.


Fix Level 2.0.x Changes:

102. [NT] rm didn't work on read-only directories even with -f or -x.  It
    does now.

103. The more -t option for setting tabstops from the command line didn't
    work.  It does now.

104. diff, uniq, cut, fgrep, grep and sed shared a common i/o buffering
    routine that had a bug that could cause them to crash or produce
    erroneous results on files with line ends other than \r\n.  That's
    been fixed.


Fix Level 2.0.y Changes:

105. There was a bug in the Berkeley compatibility mode introduced at 2.0.v
    that would cause the shell to hang if a #!/bin/csh script that contained
    any set statements was run more than once.  That's been fixed.


Fix Level 2.0.z Changes:

106. Calling the abs() built-in function without an argument caused the shell
    to crash.  It now gives an error message as it should.


Fix Level 2.0.27 Changes:

107. The changes made at 2.0.v to provide call stack dumps caused line
    numbers not to be shown in parser error messages when compiling scripts.
    That's been fixed.

108. The -I, +I, -O and +O command line options have been added to the C shell
    to allow insert mode to be customized.  Type "csh -h" for more info.

109. [NT] mv didn't properly move read-only files across disk partitions.  It'd
    make a copy, then complain it didn't have proper access.  It works now.


Fix Level 2.1 Changes:

110. [NT] First complete rebuild for the March beta.

111. [NT] tar now knows that NT keeps track of timezone information.  The TZ
    variable and the -g and -G options are no longer used.

112. [NT] The shell is dramatically faster, especially at inserting into long
    command lines and compiling scripts on the DEC Alpha and MIPS R4x00.

113. The -b option has been added to the C shell to turn off Berkeley mode
    even on scripts that start with #!/bin/csh.

114. Error messages from the C shell should now all be properly displaying line
    numbers where appropriate.

115. A bug that potentially could have (but was never reported to have) caused
    the shell's unproc and unalias commands to crash was fixed.

116. [NT] The cl.csh script in the samples directory has been updated for
    the March NT beta and now knows about the hybrid compilers on the MIPS
    and Alpha machines.  Use -old to get the old compilers.

117. [NT] hlabel.exe can now set the label on a volume.  (There was no Win32
    API to support this under the October Beta.)

118. [NT] The C shell -Z option now works.  (Previously, it was ignored under
    NT because there was no support for it under the October Beta Win32.)

119. [NT] The rm.exe command has been renamed hrm.exe and an "alias rm hrm"
    command added to the default startup.csh script to avoid conflicts with
    the brain-dead Microsoft rm.exe command supplied with the NT SDK.

120. [OS/2 2.0] Inexplicably, DOS VDM applications were being started in
    invisible windows.  Accessing them required typing Ctrl-Esc.  They're
    now properly started in visible windows.


Fix Level 2.1.a Changes:

121. [NT] Touch, mv, cp and tar now know how to set the timestamps on
    directories.

122. csh -XC now looks for a command immediately following the "C".  It no
    longer tries to parse any remaining characters in that word as option
    characters and no longer requires the command to start in the next word.


Fix Level 2.1.b Changes:

123. [NT] Hlabel would only change the label on the current drive.  It works
    properly now.

124. The C shell didn't properly handle $i[$j] and $i[$k[^]] references in
    Berkeley compatibility mode.  That's been fixed.

125. Set variables weren't always inherited by child threads in Berkeley mode.
    For example,

       % set i = 1; echo `echo $i`

    didn't work.  It does now.


Fix Level 2.1.c Changes:

126. In Berkeley mode, double quoted substitutions involving $0 could fail.
    E.g.,

      % echo "$0 a"

    caused the shell to crash.  It works now.

127. The Berkeley C shell would accept case clauses that didn't have colons
    following the test and those with quotes around the pattern.  This wasn't
    the documented behavior but some users did write scripts that depended on
    it so Hamilton C shell now allows that also in Berkeley mode.

128. for i = 1 to 1 by -1; echo $i; end would loop thru 1, 0, -1, -2, -3, etc.,
    rather than exiting after the first iteration.  That's fixed now.


Fix Level 2.1.d Changes:

129. [NT] Trying to set path[i] garbled the global variables lock.  That
    statement would appear to work, but, e.g., trying then to do a setenv
    would hang and eventually crash.  That's been fixed.

130. In Berkeley mode, other indexed variable references such as @ i[$j]++
    didn't index properly.  They do now.

131. [NT] The cl.csh script in the samples directory didn't properly work
    with -O options.  It does now.


Fix Level 2.1.e Changes:

132. [NT] The dskwrite and dskread utilities have (finally!) been added.

133. [NT/x86] Tar no longer fails when it tries watching for binary files and
    automatically turning off \n to \r\n conversions.  (This was actually a bug
    in all versions of tar; for some reason, it just didn't manifest itself
    except in the NT/x86 version.)


Fix Level 2.1.f Changes:

134. [NT] A bug in NT's DOS subsystem caused DOS apps started from the C shell
    to think they were running in the wrong current directory.  E.g.,

      1 C% cd \tmp
      2 C% dosapp
      3 C% cd ..
      4 C% dosapp <-- Still thought it was in \tmp

    This build contains a workaround for the problem.

135. In Berkeley compatibility mode, the C shell no longer tokenizes #
    separately to recognize comments. Thus, where previously

      echo `echo '#r'`

    produced "# r", it now properly produces "#r".


Fix Level 2.1.g Changes:

136. dskread and dskwrite didn't properly handle missing ordinates, e.g.,
    (35,,) or ranges that weren't closed, e.g., (50,0,0)-.  It works now.

137. [NT] dskwrite didn't work at all writing an entire disk.  It does now.

138. [NT] ls no longer generates a spurious "'*.*' does not exist" message
    when listing a blank formatted diskette.  Also, it now does give a
    message when listing an unformatted diskette.


Fix Level 2.1.h Changes:

139. Changes made to support stack tracing caused the shell to crash if the
    prompt was set to something involving command substitution.  That's fixed.

140. In certain cases, the diagnostics would indicate an error at line 1 when
    it should have said something else.  That's been fixed.

141. The C shell's -I option didn't work.  It does now.

142. [NT/Alpha] Expressions such as i += 1, where i is an integer, were
    incorrectly producing a floating point result due to a compiler
    optimization error.  In this build, optimization has been turned off
    for the relevant module to ensure correct results.

143. [NT/Alpha] du didn't correctly report the total space on a drive.
    This build contains a workaround.

144. [NT] dskwrite -F crashed.  It works now.

145. [NT/Alpha] dskread and dskwrite would frequently fail, complaining they
    couldn't read the drive parameters, if the diskette drive had not
    previously been accessed.  Rerunning dskread or dskwrite would work.
    This has been traced to a bug in the Alpha/NT system; the current build
    contains a workaround to ensure correct results.

146. [NT] It's now possible to redirect stdout to a device such as \\.\a: or
    \\.\tape0.


Fix Level 2.1.i Changes:

147. tar complained about archives created on UNIX SVR4.  The SVR4 tar writes
    all octal fields in the header as null-terminated strings, contrary to
    spec as defined in the BSD 4.3 Programmer's Manual which says that many
    of the fields should be terminated with space + null and others not
    terminated at all.  Hamilton tar now knows to accept this variant format
    without complaint.  Also, when tar extracts files, it now sets the archive
    bit on the newly-extracted files.

148. mv and cp now retain the case of any filenames they move.  Previously,
    if one typed "mv foo ..", the resulting file would be in whatever case
    was typed, not what it had been stored as previously.

149. [NT/Alpha] Expressions like 2**10 resulted in floating point results
    (albeit correct ones) when they should have produced integer results.
    This build contains a workaround.

150. [NT] winerror.c and winerror.exe were added to the samples directory
    and the help proc definition were added to startup.csh.  This gives a
    convenient means of getting the Win32 error message corresponding to a
    return code.

151. [NT] The source command should have tried pasting a .csh extension onto
    the filename if the name as specified didn't exist.  It does now.

152. Command substitution now processes certain unquoted escape sequences in
    the backquoted string before parsing it.  This ensures, e.g., that the
    following will work, producing "1 2 3 4 5":

      echo `for i = 1 to 5 do ^
      echo $i ^
      end`

153. If callstack reporting was turned off with csh -t, there was a possibility
    (never reported) that the shell could crash following stack pops.  That's
    been fixed.

154. The shell now generates callstack reports for scripts read with the
    source command and now reports the correct linenumber if a syntax error
    is encountered inside the sourced script.

155. [NT/Alpha] strings was broken due to a bug in the Alpha compiler.  This
    build contains a workaround.

156. [NT] International keyboard keying conventions (e.g., ALT + 8 to create
    the "[" character on a German keyboard) should now be working.  This
    change affects the C shell, mv, cp, rm, more and des.


Fix Level 2.1.j Changes:

157. [NT/x86] diff had two problems with binary files:  a bug in the code that
    automatically detected binary data could cause diff to crash.  Also, a
    compiler optimization bug caused diff to claim there were differences in
    binary files that were in reality exactly the same.  This build fixes
    both those problems.


Fix Level 2.1.k Changes:

158. [NT] The change made at 2.1.i for international keyboards ended up
    breaking support for Ctrl + other keys such as Enter or [.  That's now
    fixed, affecting the C shell, mv, cp, rm, more and des.

159.  Startup.csh changed to show how users might customize it to have operands
    to dir wildcarded by the C shell or by cmd.exe itself.

160. [NT] The cl.csh script in the samples directory now accepts the CPU
    variable values typed in mixed case.

161. [NT] The C shell no longer hangs if you attempt to kill a child Win3.x
    app and then do a ps.  (But you still can't kill the Win3.x children,
    apparently due to a bug in NT.)

162. [NT] The C shell now places =X:-style current directory variables into
    the environment for all valid drives at startup, even for drives for
    which the current directory is the root.  This is to work around an
    apparent problem in the VDMs under NT on the RISC machines.


Fix Level 2.1.L Changes:

163. The changes made to support the -B (Berkeley compatability) option
    broke the use of the bsdargv variable and could cause the shell to
    crash.  bsdargv is more-or-less obsolete now, but it certainly shouldn't
    cause a crash; it's been fixed in this build.

164. The startup.csh file has been fixed so that the alias/proc mechanisms
    used to intercept copy, xcopy, etc., will still work if the shell is
    invoked with -B.  (The problem was with the @ s = nowild statements in
    the aliases.   In Berkeley mode, a $ was needed to make a valid
    expression.)


Fix Level 2.1.m Changes:

165. The changes made to support the -B (Berkeley compatability) option
    introduced a bug in indexed variable evaluations done in the prompt1
    and prompt2 variables.  Also, some never reported but latent bugs in
    iterated statements containing indexed variable references were fixed.


Fix Level 2.1.n Changes:

166. Yet another UNIX tar was discovered that formatted octal fields in
    the headers slightly differently than the spec required, causing our
    tar to reject the file.   This release contains a fix to cause tar to
    accept virtually anything that looks like a plausible octal number.

167. Filename expansion now knows to quote or escape any { or } characters
    in any files it matches.


Fix Level 2.1.o Changes:

168. [NT] The C shell now knows to ignore nonsensical Ctrl-<key> combinations.
    Previously, these keystrokes could cause the C shell to get confused about
    the cursor position.

169. [NT/Alpha] Problems with expressions for which workarounds were added
    at 2.1.h and 2.1.i have finally been tracked down to a legitimate coding
    bug in the long precision math routines for the Alpha.  It's corrected
    in this build.


Fix Level 2.1.p Changes:

170. sed no longer allows "." to match either CarriageReturn or NewLine.  This
    ensures that

         echo abc | sed 's/./& /g'

    sensibly produces "a b c \r\n", not "a b c \r \n ".

171. Typing a few characters onto the command line, pressing Escape and then
    End caused the C shell to put the cursor in the leftmost column in the
    window rather than, as it should have, in the column following the prompt.
    That's been fixed.

172. [NT] The cl.csh script now knows how to handle C++ files with .cpp
    or .cxx extensions, resources in .rc, .res or .rbj files, and create
    either console (default or -console) or graphical (-GUI) applications.

173. [NT/x86] The args.exe, dumpenv.exe, myecho.exe and rcode.exe files in
    the samples directory had never been rebuilt since the October beta.
    They worked on the March beta but not the later builds.  They have
    now been rebuilt.


Fix Level 2.1.q Changes:

174. [OS/2] The startwin.exe utility has been added.  This is a tiny PM
    program that can be used to start Win3.x apps seamlessly on the desktop
    under OS/2 2.x.  It's automatically invoked by the C shell if you type
    the name of a Win3.x app when running under OS/2 2.x.  For more info,
    type "startwin -h".

175. The C shell now intercepts the situation where a PM child under OS/2
    or a non-console app under NT is being run and stdout or stderr is tied
    to the C shell's console window.  Since console handles aren't inheritable
    in these cases, the C shell will instead pass a handle to the input end
    of a pipe and start a new background thread to copy anything written into
    that pipe onto the screen.  This lets ordinary printf's be used in PM
    or Win32 GUI apps without losing the output.

176. In Berkeley mode, the C shell no longer does any history expansion inside
    comments.


Fix Level 2.2 Changes:

177. [NT] A complete rebuild of the whole product on the release versions
    of NT on all three platforms.

178. [OS/2] If a child process ended with a hard error or a trap, the
    C shell didn't dump out the call stack.  It does now.

179. The C shell no longer routinely translates the PATH directory names
    to lower case.

180. Processing of special characters inside single- or double-quoted
    strings has been improved slightly.  It's now possible to type, e.g.,

       set prompt1 = '$ansi("bright yellow")$cwd '

181. ls.exe now gives an error message if a UNC name it's given doesn't
    exist.  Previously, the message was generated only for non-existent
    local names.

182. [NT] cl.csh in the samples directory has been updated for the final
    release of NT, which does not use an ntdll.lib.  It now accepts -O...
    optimization options which override the defaults.  When it finds a
    skip file, it sets the shell variable, skip, to the full pathname; that
    allows the ferr alias to work even if cl is called first from its own
    directory and later from another directory.  Also, cl knows that in
    the final release for the Alpha, acc can (finally!) use the INCLUDE
    environment variable; it's no longer necessary to break it up into
    a series of -I options.  Finally, the _MT symbol is now defined.

183. [NT] cp now knows how to set the timestamps on any read-only directories
    it copies.

184. head, tail and tabs had a bug that caused the [ in an ANSI escape
    sequence to be turned into two ['s if it fell on a buffer boundary
    when expanding tabs.

185. The demo.exe supplied with the demo version of the C shell no longer
    uses the existing HOME variable even if it's defined.  That was causing
    problems when HOME pointed to something with different/missing login.csh
    or startup.csh files.  Also, under NT, it now registers a signal handler
    so it won't exit before its child has exited.

186. It's now possible to wildcard drive letters.  E.g.,

         ls *:\*\bin

    now works.  If an * or ? is specified for the drive letter wildcard,
    then the set specified by the DRIVEMASK environmental variable is used.
    If DRIVEMASK has not been set, the drives c: thru z: (as may exist) are
    searched.  To search drives a: and b:, which are usually floppies, you
    must specify them explicitly, e.g., [a-z]:\*\bin.  Also, if the path
    is on one of the MIXEDCASEDRIVES, the entire resulting path will be in
    the correct case.

187. fullpath now puts the resulting pathname into the actual case stored
    in the filesystem if the the path is on one of the MIXEDCASEDRIVES.
    Otherwise, it puts the result into all lower case.

188. ls wouldn't report anything on a UNC drive if invoked with the current
    drive was one of the MIXEDCASEDRIVES.  It works now.  Also, MIXEDCASEDRIVES
    can now accept a list of UNC servers and/or drives following the range
    of drive letters.  For example:

       setenv MIXEDCASEDRIVES = d-f,\\alpha\drive-c,\\beta

    means that drives d: thru f:, drive-c on \\alpha, and all drives on
    \\beta are mixed case.  \\ without a machine name means all UNC names
    should be reported in mixed case.  Individual list items should be
    separated by commas, semicolons or white space.

189. du now complains if you ask for it to report on something other than
    a: thru z:.

190. cp and mv no longer attempt to set the timestamp of an existing directory
    when merging in another directory (e.g., in doing "mv a: .").

191. [NT] cp and mv no longer give a bogus message about not being able to
    query path info about the root directories on diskettes.

192. [OS/2] newer and older failed to compare the seconds component if two
    timestamps matched down to the minutes.  That's fixed.

193. The cron utility has been added.  For help, type "cron -h".

194. The -Y option to suppress the installation of an interrupt handler
    has been added to the C shell.  Under NT, this option is ignored.

195. fgrep -x didn't match lines that didn't happen to cross buffer
    boundaries.  It should now work in all cases.  Also, a minor change
    in the interface to internal get_line routine was made in fgrep, grep,
    and cut.

196. The C shell now accepts empty statement lists in an if/then/else,
    following a default: case in a switch statement or in (...) or
    {...} groups for better compatibility with the Berkely C shell.

197. more didn't properly truncate the filename in the prompt at the bottom
    of the window if the filename was too long.  Under NT, that caused it
    to fail completely.  Under OS/2, it ran, but it couldn't display command
    keystrokes.  All that's fixed.

198. [NT] If dskread/dskwrite is unable to open a drive because of a
    sharing violation, it waits 3 seconds and tries again.  This is to
    allow any writes in the system buffers to get flushed to the drive.


Fix Level 2.2.a Changes:

199. [NT] The mt (mag tape) utility has been added.  Type "mt -h" for help.

200. Tar now ensures that it never writes blocks of less than 512 bytes
    at a time.  That was important for writing to the tape device under NT.

201. [NT] dskread and dskwrite will now sleep up 7 seconds in 100 millisecond
    increments, waiting for a slow diskette to free up rather than a flat,
    all-or-nothing 3 seconds.


Fix Level 2.2.b Changes:

202. [NT] Changes (mostly just to the makefiles) to support a port to another
    unannounced RISC processor running Windows NT.

203. [NT] strings -v didn't properly display the filenames associated
    with the strings it found.  It works now.


Fix Level 2.2.c Changes:

204. [NT] If the C shell was started with a title bar longer than 127
    characters, it would crash.  That's fixed.


Fix Level 2.2.d Changes:

205. [NT] More minor changes for yet another port to an unannounced RISC
    processor running Windows NT.

206. [NT] mt.exe didn't format error messages properly.  It does now.

207. [NT] touch.exe had an uninitialized variable that caused it to set
    timestamps off by a random number of milliseconds.  That's fixed.


Fix Level 2.2.e Changes:

208. Changes made at release 2.2 related to better support for mixed case
    drives created a bug in the fullpath built-in function which caused a
    number of problems on a mixed case drive:  (a) fullpath("*.*") returned
    "c:\foo\." rather than "c:\foo\*.*", (c) under NT, fullpath opened a
    FindFirstFile directory handle that it would forget to close, making it
    impossible to delete the directory, (d) the shell would claim it
    couldn't find executable files in the current directory, (e) if nohashing
    was set to 2, then the shell wouldn't be able to delete any directory
    which had been a current directory at a time when any external program
    was run.  All these (seemingly different) problems were the result of
    the same 2-line bug, now fixed.

209. Those same changes at 2.2 to support mixed case also involved turning
    all filenames to all lower case on non-mixed case drives in the fullpath
    function and in the filename editing functions (:b, :e, :f, :t).  That
    caused problems for a large customer and has been backed out.

210. [NT] The C shell now uses _beginthread/_endthread to start or exit any
    threads it creates instead of calling CreateThread directly.  Microsoft
    has advised that the C run-time library (including even basic functions
    like malloc) may cause memory leaks if _beginthread isn't used.

211. [NT/Risc machines] tr -s (squeeze option) didn't work.  It does now.

212. [NT] A bug in the common display routines caused ANSI escape sequences
    to be parsed incorrectly if the escape sequence was broken across a
    buffer boundary.  The failure was a very rare event, but it could
    affect lots of utilities.  It's fixed in this build.

213. [NT] xd -w didn't work properly.  It does now.

214. A set of sed scripts have been added to the samples directory for
    converting Bourne/Korn shell scripts into C shell scripts.  Customers have
    reported these sed scripts eliminate about 85% of the work of converting
    shell scripts.


Fix Level 2.2.f Changes:

215. Statements joined with the && conditional execution operator were
    viewed as having failed with an error (causing loops to exit, etc.) if
    the leftpart returned a non-zero return code.  It should not have been
    an error and is now fixed.


Fix Level 2.2.g Changes:

216. If there were any command or variable substitutions inside a <<-style
    "here document", the line number was incorrectly incremented a second
    time.  That's been fixed.

217. Cron has been enhanced to treat blank lines and lines beginning with
    # as comments.  It also now give a warning if the values specified in
    any particular field are not monotonically increasing (to help catch
    mistakes forgetting to use 24-hour times).  Finally, a bug in the
    parsing of the day/date specification fields has been fixed.

218. The C shell has been enhanced to support use of Tab and Shift-Tab for
    file completion.  Repeatedly pressing Tab gives the first and following
    matches, one at a time.  Shift-Tab starts at the end and works backward.
    To disable Tab completion, start the C shell with the -T option.  (You
    may wish to use the CSHOPTIONS variable to do this.)

219. Heapstat figures could become garbled if filename completion was used
    and it resulted in a large number matches.  That's corrected.

220. A dollar sign that's not followed by a valid variable reference is now
    treated as literal text rather than as an error.  That makes it more
    convenient, e.g., to type UNC names such as \\alpha\d$; it's no longer
    necessary to remember to escape the $.

221. A bug in processing of the MixedCaseDrives variable has been fixed.


Fix Level 2.2.h Changes:

222. The Tab completion introduced at 2.2.g had a few bugs:  If there were
    no matches found, the shell crashed.  The original wildcard string was
    garbled if one tabbed all the way thru the ring back to the original
    wildcard.  There were some minor memory leaks.  Finally, the help
    information was wrong:  -T _disables_ tab completion.  These problems
    have all been fixed.

223. [NT] The blksize utility has been added to the samples directory.  It
    can be useful for reading/writing tape devices that support only certain
    blocksizes.

224. [NT] Under certain cases, cp would fail to recognize attempts to copy
    a file over the top of itself and would actually try to do the copy,
    causing the file contents to be lost.  That's fixed.


Fix Level 2.2.i Changes:

225. More work on tab completion:  when tab completion is enabled, a plain
    tab can be typed as Ctrl-Tab.  When -T is specified, tab completion is
    now still available, but as Ctrl-Tab and Shift-Tab.  Also, if the original
    wildcard contained { or }, cycling back to it didn't work right:  the
    { and } characters were escaped; they should have been left alone.
    That's fixed.

226. Aliases now support arguments using the history reference-style syntax
    used by the Berkeley C shell.  If there are no references, any arguments
    are simply pasted on the end of the expansion as before.  For example:

      1 D% alias test echo ^!^* world
      2 D% alias test
      test        echo !* world
      3 D% test hello
      hello world
      4 D% alias test echo hello
      5 D% test world
      hello world

227. Long-form history references now properly support braces around the
    argument.  E.g., "!{!}" is the same as "!!".

228. [NT] "mt -v status" now continues dumping the tape device status even
    if it cannot determine the block number at which the device is positioned.
    Also, some of the status information was garbled; it's now correct.

229. Editing operators may now be used inside the curly braces in a variable
    reference, e.g., ${cwd:h}.  Also, any number of braces may be nested
    around a variable substitution.

230. A memory leak when aliases were unaliased has been fixed.

231. The member.csh script has been added to the samples directory.

232. (...) statement groups and {...} expressions weren't being evaluated
    correctly.  The status code was being discarded.  (That made {...}
    expressions pretty useless.)  That's fixed now.  Also, {...} expressions
    no longer push & pop the directory stack on entry and exit.


Fix Level 2.2.j Changes:

233. Wildcarding and filename completion didn't work with MixedCaseDrives
    set if the pattern contained a ".." or "." level.  That's fixed.

234. Doing Shift-Tab, then Tab skipped over the step of reposting the
    original wildcard string.  That's fixed.

235. The -Z option has been added to rm.exe (hrm.exe under NT) to allow
    a file to be completely overwritten with binary zeros before deletion,
    thus guaranteeing that no one can "undelete" the file later.

236. [NT] The change made to cp at 2.2.h was too conservative and caused
    it to refuse to some copies that were legitimate, e.g., "copy foo\bar .".
    That now works.

237. tar has been dramatically improved.  Over 30% more code was added,
    to provide these new features and improvements:
    a) It now is able to read/write CPIO ascii and binary files and to
       automatically recognize them when it encounters them.
    b) It now knows how to do \r\n -> \n conversions to an archive even
       when it's writing the archive to a pipe or a tape device where seeking
       back to the header to fixup the size field is impossible.  (It now
       uses a prescan of the data if seeking is not going to be possible.)
    c) A new -ff variation on the fullpath option causes tar to write the
       entire pathname specified on the command line (including any drive
       letter and colon) into the archive.  This isn't really legal for
       restoration on a UNIX machine, but it does let you use tar to back
       up more than one drive at a time.
    d) If \'s were typed in filenames given on the command line, tar would
       not convert those to /'s in the archive.  That caused problems for
       restoration on a UNIX machine.  tar now converts all \'s to /'s.
    e) A lot of work was done to directly support tape drives under NT.
       Tape devices can now be opened as an archive file using the name
       \\.\tape0.  It's now possible to specify a blocksize to be used in
       reading/writing the archive.  Also, if tar discovers the archive
       is on a tape device, tar will try to ensure that it's using a
       blocksize that's compatible with the drive and that the drive has
       been properly initialized.
    f) The -v (verbose) option now causes tar to report the format (TAR vs.
       CPIO binary vs. CPIO ASCII) and byte sex was used in the archive.
    g) The -b (bytesex) option didn't work.  It does now.
    h) If a file being added to an archive is on a drive listed in the
       MixedCaseDrives environment variable, the filename will be stored
       into the archive in mixed case.

238. uniq -u didn't report the last line if it was unique.  It does now.

239. Null argument words weren't being passed to child processes started
    from the C shell.  E.g.,

       1 C% myecho hello "" world
       'myecho' 'hello' 'world'
       arg length = 19 characters.

    It should have (and now, does) produce:

       'myecho' 'hello' '' 'world'
       arg length = 20 characters.

240. The sample startup.csh has been modified so that it can be re-invoked
    by the same copy of the C shell without causing the layer number to be
    incremented.

241. [Demo versions] The maximum number of commands that can be typed before
    the demo exits, forcing the user to start a new copy has been raised from
    5 commands to 10 commands.


Fix Level 2.2.k Changes:

242. If certain wildcarding situations with MixedCaseDrives, the shell would
    forget to close a directory handle, making it impossible to delete the
    directory without exiting the shell.  That's fixed.

243. More work on cp to avoid problems copying files on top of themselves,
    this time treating the case "cp x d:" where x is on d:.


Fix Level 2.2.L Changes:

244. Corrected minor typos in the tar help screens.

245. [NT] Minor support work for unannounced RISC platforms.

246. [NT] A new, more standard makefile has replaced the old samples.mak
    in the samples directory.


Fix Level 2.2.m Changes:

247. A bug in the goto statement implementation that could cause access
    violations in the C shell was fixed.

248. Minor typos in the tar help screens were fixed.


Fix Level 2.2.n Changes:

249. Incrementing or decrementing an indexed built-in variable (e.g.,
    processid[1]++) actually changed argv, not the intended variable.  That's
    fixed.

250. The new tar was incorrectly writing directory names as if the -f option
    was specified, even if it wasn't.  Files themselves were added correctly.
    Now, both should be right.  Also, when listing the contents of a tar
    archive, tar printed the trailing / following directory names, just as
    they appeared in the archive.  That trailing / is no longer shown, making
    the output a little more like that of ls.

251. [NT] Trying to move a directory from one partition to another would fail
    with a sharing violation, claiming the directory was in use by another
    process, if the directory contained subdirectories.  That's fixed.

252. If MixedCaseDrives was used, wildcards like ..\..\* would fail if used
    more than 2 levels down from the root.  That's fixed.

253. Ctrl-C interrupt handling has been improved.  Interrupts now bubble
    up better from interrupted child processes and threads to the threads
    that created them.

254. The C shell no longer abitrarily sets its exit code to 1 when it
    should be 0.


Fix Level 2.2.o Changes:

255. The new tar was properly reading cpio ASCII files, but wasn't writing
    them correctly.  Support for cpio binary files just didn't work at all.
    Appends to either tar or cpio files also didn't work.  All this should
    be working now.


Fix Level 2.2.p Changes:

256. Environment variables could be properly set to zero words, but if a
    new child copy of the C shell was started, it'd parse the value it was
    passed as a single word consisting of the null string.  That's fixed.

257. If ignoreerors was set to 2 (ignore everything), then continue, break,
    goto, exit, logout and return statements were treated as nops.  That's
    fixed.

258. The -e (execute only, no logging to history) and -L (load history)
    options have been added to the source command.  Also, the -n (no
    execute) option has been changed to do a syntax check, consistent
    with the -n option for the C shell itself.

259. If the C shell was started with the -n (no execute) option, exit didn't
    work.  It does now.


Fix Level 2.2.q Changes:

260. [NT] The mt -f option didn't work.  It does now.

261. source -s could cause the shell to crash if it was trying to read
    from the keyboard.  The bug could apparently (though never reported)
    also cause other failures.  The problem is now fixed.

262. If the new argument notation was used in an alias, then word separator
    characters were incorrectly handled.  Aliases such as the following
    didn't work, but should now:

       alias x  (echo ^!^*; echo hello)

    Also, errors involving unpaired quotes in an alias expansion such as
    the following were overlooked.  They're now caught.

       alias y echo "'"


Fix Level 2.2.r Changes:

263. The demo version of cron were looking for csh.exe; they should have
    been looking for cshdemo.exe.

264. Minor work to support a demo version of the C shell that would expire
    at a future date.


Fix Level 2.2.s Changes:

265. [NT] The work done at release 2.2.e to use _beginthread instead of
    CreateThread has been undone after it was discovered that the thread
    handle returned by _beginthread is unreliable.  The C shell and all the
    utilities and samples now use the single-threaded CRTL, locking each
    use with a critical section.  In general, things are now a bit smaller
    and a bit faster.

266. [NT] Everything has been recompiled on Daytona.  It should, however,
    still be fully compatible with the released NT 3.1 build.

267. [NT] dskread and dskwrite now use paragraph-aligned (16-byte aligned)
    buffers for all I/O to the diskette.  Something changed in Daytona,
    non-paragraph-aligned buffers used to work under NT 3.1, but stopped
    working on the MIPS under Daytona.

268. [NT] The blksize utility in the samples directory now uses a paragraph-
    aligned buffer.

269. Tar didn't work if you tried backing up a root directory.  Under NT,
    it did nothing; under OS/2, it crashed.  That's now fixed.

270. Sed now accepts escape sequences like \r and \n in search and replace
    expressions.  Also, the help information for static text operations
    (a\, c\ and i\) has been made a bit more readable.

271. [NT] The cl.csh sample script has been updated for the Daytona beta.

272. [NT] The tape device always reports an error, ERROR_BUS_RESET, if
    GetTapeParameters is called immediately after a new tape has been
    inserted.  Calling GetTapeParameters again gives useful information.
    The mt and tar utilities have been fixed to do that second attempt.

273. [NT] The eraseshort operation has been added to mt.

274. [NT] Some additional nuisance messages produced by the Daytona compilers
    have been added to the skip file in the samples directory.


Fix Level 2.2.t Changes:

275. Expressions in an elif clause were evaluated in Hamilton C shell mode,
    even inside #!/bin/csh scripts, where clearly Berkeley rules should be
    used.  That's been fixed.

276. [NT] Under Daytona (NT Release 3.5) or later, the C shell now starts
    child processes with error mode set to zero, just as cmd.exe does.
    The C shell itself uses a non-zero error mode to disable popups,
    allowing the shell to intercept any error conditions.  That's important
    to allow unattended scripts to be run.  But error mode was inheritable
    under NT 3.1 and it caused problems with some 3rd party apps that
    just assumed they'd be started with error mode = 0.  Daytona has a
    new option to CreateProcess to allow apps running with a non-zero
    error mode to start children with a zero error mode.


Fix Level 2.2.u Changes:

277. [NT] Changes made at 2.2.s to use CreateThread instead of _beginthread
    and GlobalAlloc instead of malloc introduced a bug into the C shell
    and cron:  their use of GlobalReAlloc was flawed and caused any
    reallocations (e.g., if editing caused the command line to grow beyond
    4 lines) to fail.

278. Dskwrite and cp, rm and mv can now diagnose more clearly those
    failures due to write-protected media.

279. cron now considers a Ctrl-Z character in a crontab as an end-of-file.
    Also, if any of first five fields is garbled, the message is better.

280. The line numbers in any messages resulting from a garbled command
    specified with -C or -c are now correct.  A counter hadn't been
    re-initialized after login.csh and startup.csh were read.

281. Tar's verbose messages now mention the blocksize it's using.


Fix Level 2.2.v Changes:

282. Support for escape sequences such as \r, added to sed at build 2.2.s,
    has been added to grep.  Hex escape sequences, which didn't work right
    in sed, have been fixed and work properly in both sed and grep.

283. Sed and grep now accept span expressions using the \{n,m\} syntax.
    E.g., grep '10\{2,4\}1' will match 1001, 10001 and 100001, but not
    101 or 1000001.

284. The rot13 alias (for decoding off-color jokes on Internet) has been
    added to startup.csh.

285. A number of improvements were made to tar:

      a) [NT] Tar would crash in its error message routine if it was asked
         to copy a file to the archive that was open for writing by another
         process.  That's fixed.
      b) [NT] Tar now normally rewinds the tape device at the start and
         at the finish of the operation.  This can be suppressed with the
         new -N (no rewind) option.
      c) Tar's messages about suppressing \r\n -> \n line end conversions on
         binary files now appear only if the -v (verbose) option is selected.
      d) If it encounters a file that can't be copied to the archive, tar now
         just gives a warning and continues; it used to give a message and
         just quit.
      e) The spurious messages about garbled headers are suppressed for
         empty tar files.
      f) [NT] Failed attempts to set the blocksize on a tape device are now
         treated as cause for a warning message, not a fatal error.

286. The sh_2_csh.csh script had some out-of-date references to an
    sh-2-csh subdirectory.  Because the hyphen isn't a legal character on
    CD-ROM filesystem, that directory was renamed but the change wasn't
    made to the script.  Now it's correct.

287. [NT] The how2tar.txt and how2tar.wri files were added to the distribution
    disks to explain how to get tar to work with a tape drive under NT.

288. The license.txt file was added to each of the .zip files on the demo
    disks.


Fix Level 2.2.w Changes:

289. Dskwrite -FH didn't work at all under OS/2 and not on unformatted
    disks under NT (for different, unrelated reasons under the two systems).
    It works now.

290. Minor typos in the help screens for sed, grep, kill, and the C shell
    itself were corrected.

291. [NT] The how2tar.* files were omitted from the product versions of some
    2.2.v disks.  It should be on all of them now.


Fix Level 2.2.x Changes:

292. [NT] A bad race that could hang the C shell on a multiprocessor system
    was fixed.

293. The mixedpath(...) function and the :m editing operator were added to
    allow the true mixed case filename stored in the filesystem to be
    retrieved.

294. The :h operator didn't work on a filename consisting of only a \.  It
    does now.

295. Dskwrite -FH and -FL still had problems formatting some disks, depending
    on how they were previously formatted.  Hopefully, all cases should now
    be covered.  Also, a -E option was added for Extended Density formatting.

296. Additional work on tar:

     a) The help screen for tar now mentions that -b abcd is little-endian
        and -b badc is big-endian and that if the archive is intended to be
        read on a RISC or Motorola-based UNIX workstation, big-endian should
        be used.  The -bB (Big-Endian) and -bL (Little-Endian) aliases for
        -b badc and -b abcd, respectively, have been added.  Also, the -v
        (verbose) output now specifically identifies abcd and badc formats
        as Little-Endian and Big-Endian, respectively.
     b) [NT] The help screen for tar now mentions that you must manually
        specify a blocksize of 1024 or larger to make a DAT drive work.
     c) The -I option, allowing the list of files to added to/extracted from
        an archive to be specified in an include file on disk or via stdin,
        has been added.
     d) The -A option has been added, meaning reset the Archive bit on any
        files or directories copied to a tar or cpio archive file.  (During
        extraction, -A is ignored and the Archive bit is always set.)
     e) The ReadOnly bit is now preserved properly.

297. The CSHTITLE environmental and cshtitle shell variables have been added,
    allowing control over the text in the title bar.  They work like the
    PROMPTx and promptx variables and are recalculated whenever they're
    displayed.  Unset'ing cshtitle causes "Hamilton C shell" to be used;
    set'ing cshtitle to a null string causes the title bar it inherited
    at entry to be used.

298. Setting prompt2 incorrectly set prompt1.  It now correctly sets prompt2.

299. [NT] The ps command didn't report the thread id's correctly following
    the work done at 2.2.s to switch back to using CreateThread.  ps now
    works properly.

300. [NT] References to environmental variables inside an expression were
    case-sensitive; they should have been case-INsensitive as they are now.

301. [NT] The kill command had an extraneous CloseHandle call that could
    have produced random results.  That's fixed.


Fix Level 2.2.y Changes:

302. The help screen for dskread now mentions that it also accepts the -E
    (extended density) option.

303. The help screen for tar now correctly specifies that when extracting
    files, the -A option is ignored and the Archive bit is always set.  Also,
    a minor typo in the -I option description was fixed.


Fix Level 2.2.z Changes:

304. A new -S (stop) option has been added to tar.  Tar no longer stops if
    it can't extract a file or directory from an archive unless -S is
    specified.  A spurious message about turning off \r\n to \n conversions
    when -vr is specified has been suppressed.  A bug that caused tar to
    fail to extract a directory if one of the levels already existed.

305. When reading stdin, wc no longer pastes a spurious null character
    onto the end of its output.

306. [NT] The posxpath.csh script for converting ordinary filenames to
    POSIX format has been added to the samples directory.


Fix Level 2.2.27 Changes:

307. [NT] Cron had a resource leak that's been fixed.  It wasn't closing
    the thread handle returned by CreateProcess when it spawned a child.


Fix Level 2.2.28 Changes:

308. [NT] Tar can now read tapes using a 512-byte blocksize.  Inserting a
    new tape in the drive no longer causes spurious failures.  Attempting to
    read a tape using the wrong blocksize now results in a message stating
    that fact.  If there's no media in the drive, that also results in a
    specific message.

309. Tar's newline processing during extraction no longer inserts
    CarriageReturns just before any NewLines that are already preceded by
    CarriageReturns.

310. [NT] mt no longer produces spurious -v status results after a tape
    is changed.  Also, it now produces a message if there's no tape in
    the drive.

311. [NT] cl.csh and ferr in the samples directory have been updated for
    the final release of Daytona (NT 3.5).

312. [NT] The C shell now recognizes when it's being run under Windows95
    (Chicago) and knows that the DOS command prompt there is called
    command.com, not cmd.exe as it is under NT.

313. [NT\MIPS] The blksize.exe file was (inexplicably) empty in some
    previous builds.  It now properly contains the actual executable.


Fix Level 2.2.29 Changes:

314. [NT] Cron can now be run as a service, meaning that it can be set
    up to run under a different ID or even when no one is logged in.
    A new -W (window) option has been added to allow cron to start
    up in a new window.

315. Cron now has a -! option which causes it to install an interrupt
    handler so that ^C or ^Break doesn't cause cron to exit.

316. The C shell now writes double quotes around any words in the
    command line it passes to its child processes that contain
    wildcard characters.  This made it possible to relink grep and
    sed with the Microsoft setargv.obj module so they can do
    wildcarding under cmd.exe.  Also, setargv.obj is now linked
    in with xd.exe.  (The fact it wasn't previously was just an
    oversight.)

317. Tar now supports C shell-style wildcarding of the list of files
    to be extracted from an archive.  Wildcarding works on all
    entries in the include file (during both extraction and addition).
    A new -T (total) option has been added to total the sizes of all
    selected files.  A new -D (dim) option has been added to cause
    highlighting NOT to be done on any output.  New environment
    variables, TARBINARY and TARASCII, are now recognized.  Each
    may contain a list (separated by white space) of wildcards
    that describe files which should be assumed to be binary or
    ascii, respectively, regardless of content.  The -R option
    didn't work properly with -s; it does now.

318. The pattern match operators, =~ and !~, didn't properly handle
    the case of matches against strings that contained a drive letter
    and a colon.  That's fixed now.

319. The unixprof (UNIX Profile) scripts have been added to the samples
    directory.  When run against a source tree, it produces a listing
    of total number of calls to each of the various UNIX system and library
    routines.

320. The timestmp.csh and fixup.csh scripts have been added to the
    samples directory.

321. touch now accepts a timestamp that allows granularity down to the
    second.  A new -2 option allows granularity in 2 second increments
    for compatibility with FAT and HPFS partitions.


Fix Level 2.2.30 Changes:

322. A number of fixes were made to tar:
     a) The changes made at release 2.2.29 to tar introduced a bug that
        caused an access violation if tar was invoked without any arguments
        following the last option word.  That's fixed.
     b) A long-standing bug, probably introduced at release 2.2.j, that
        caused problems in certain situations when reading through a pipe
        has been fixed.
     c) A long-standing bug in the heap code suddenly became apparent on
        Intel, totalling crippling tar, when we switched from the SDK
        compiler to VC++ on NT.  The bug was on all platforms but just
        hadn't been visible before and is now fixed. x
     d) Specifying an incorrect bytesex caused tar to go into an infinite
        loop when reading an archive; that's fixed..
     e) Tar now intercepts and ignores (except for a warning message)
        attempts to copy the archive file into itself.
     f) Another bug introduced at 2.2.29 caused the command line
        wildcarding against the filesystem to fail under cmd.exe.
        That's fixed.
     g) The TARBINARY and TARASCII environment variable routines had a
        bug which could cause a crash.  That's fixed.

323. [NT] The demo version of cron now gives an error message and
    refuses to install itself as a service.  (It can't run as a service
    since it must be a child of the demo version of the C shell.)


Fix Level 2.2.31 Changes:

324. Tar now is much more picky about what files it will consider to be
    ASCII.  Previously, if the first 2K bytes of a file was at least
    2/3 ASCII, the whole file was considered ASCII.  Now, tar insists
    that the first 8K cannot contain more than 8 binary characters and
    that, if it's shorter than that, not more than 1/64th of the file may
    be binary.  Also, tar now highlights any files it converts in
    bright yellow, alerting the user to changes it's making.


Fix Level 2.2.32 Changes:

325. A change made at release 2.2.29 to the wildcarding routines broke
    the posxpath.csh sample script and caused pattern matches against
    any drive letter to fail.  That's fixed in both the shell and in
    tar.

326. Tar now recognized UNC names for extraction.

327. A buffering bug that affected cut, sed, fgrep, grep, uniq and diff
    has been fixed.  This bug caused problems reading files that used only
    a \n, not a \r\n end-of-line convention.

328. [NT] Cron didn't work properly as a service installed in the default
    manner.  Also, it wouldn't respond immediately to stop requests.  These
    problems have been fixed.

329. The timestmp.csh sample script didn't properly handle leading zeros
    in minutes and seconds.  Its does now.


Fix Level 2.2.33 Changes:

330. The "fix" made to cut, sed, fgrep, grep, uniq and diff at 2.2.31 was
    worse than before, causing even worse buffering problems.  This build
    should fix the fix.

331. The postage.csh script in the samples directory has been updated to
    reflect the new U.S. domestic postage rates that went into effect on
    January 1, 1995.

332. [NT] dskread and dskwrite produced spurious complaints about the
    boot record even when used with -x.  That's fixed.

333. The changes made to tar at 2.2.29 caused it to skip over the first
    file specification on the command line if the -s option was used.
    That's fixed.  Also, a new -w option, which causes all files being
    copied to the archive to be shared R/W, has been added.


Fix Level 2.2.34 Changes:

334. Cut, sed, fgrep, grep, uniq and diff still had an occasional
    buffering problem when reading files with lines ending only in
    \n (UNIX-style), not \r\n (NT or OS/2-style).  That's fixed.

335. [NT] cron would not start as a service if the C shell wasn't
    on the system (as distinct from the user's) search path.  Beginning
    with this build, the install operation stores the C shell's search
    path into the registry entry describing the cron service.


Fix Level 2.2.35 Changes:

336. [NT] cron would not start as a service if its home directory
    (set either explicitly or implicitly if no there was no setting
    for home) was the root of a FAT partition.  Also, the interactive
    option wasn't being processed quite properly.  That's fixed.

337. Uuencode and uudecode have been added.  Also, the aliases
    uue and uud have been added to startup.csh.

338. The demo versions have been recompiled/relinked to update an
    old phone number embedded in them to our new phone number.

339. Sed had a bug in the \{...\} span logic that's been fixed.


Fix Level 2.2.36 Changes:

340. [NT] The cl.csh script in the samples directory now pipes both stdout and
    stderr through ferr.

341. The comparison algorithm used by diff has been substantially improved
    to give a far more optimized comparison listing.  Also, the -e option
    has been renamed -E, allowing a new POSIX-compatible -e option (which
    produces an ed script) to be added.  A new -N option was added which
    causes differences in line-end conventions to be ignored.

342. Cut, sed, fgrep, grep, uniq, diff and uudecode now expect that lines
    will end with either \r\n (OS/2 or NT-style) or \n (UNIX style) but
    not \n\r (reversed).  Trying to accept the reversed combination caused
    these line-oriented utilities to disagree with more over what constituted
    a line.  Also, in diff, if a single null line ending with \n was inserted
    in a file ahead of another null line ending with \r\n, it caused both
    lines to mismatch.

343. [NT] More now uses only the window size, not the buffer size for
    vertical scrolling.  This makes it reasonable to use more in a window
    with vertical scroll bars (which many users like so they can refer to
    previous commands).

344. Date now accepts POSIX-compatible format strings as options.

345. The cmp utility has been added.  Use cmp -h for help.

346. The binedit -i option didn't work.  It does now.


Fix Level 2.2.37 Changes:

347. [NT] A bug that caused more to scribble trash after the end of its
    window in a larger buffer if the sequence End-PageDown-PageDown-
    PageUp-PageUp was typed has been fixed.


Fix Level 2.2.38 Changes:

348. [NT] The setrows utility has been added for NT.  Use setrows -h
    for help.

349. The renet.csh utility for restoring unavailable LanMgr network
    resources has been added to the samples directory.


Fix Level 2.2.39 Changes:

350. The sh_2_csh.csh script didn't work if it wasn't given an argument,
    i.e., if it was just run against stdin, due to changes in the way
    null arguments were treated at release 2.2.j.  The script has been
    changed to work properly under the new rules.


Fix Level 2.2.40 Changes:

351. The sort utility has been added.  Under NT, it's named hsort.exe
    and aliased in startup.csh to avoid conflicts with the standard
    MS sort.

352. The quicksort routine used in ls.exe has been improved slightly.

353. Trying to extract a directory by name from an archive with tar
    extracted just the directory, not any of its contents.  That's
    fixed.

354. Wildcarded drive letters with nothing following, e.g., *:,
    failed under both the C shell and in the tar wildcarding
    routines.  That's fixed.

355. [NT] The cl.csh script now knows about VC++ on the Alpha.

356. The table for determining if a character was binary data used
    by diff and tar missed a couple characters.  That's fixed.


Fix Level 2.2.41 Changes:

357. Sort didn't properly treat cases where -n or -N was used on
    the whole record.  Under NT, if it was reading from a file on
    disk (where it used a mapped file), -n and -N caused protection
    violations.  Also, the -f option didn't work right.  All that's
    fixed.

358. sum now supports the POSIX CRC-32 cksum algorithm via the new
    -p option.


Fix Level 2.2.42 Changes:

359. uniq now supports the -f and -s options for skipping an initial
    number of fields or characters in its comparisons.

360. The paste utility has been added.

361. A typo in the help screen for sort has been corrected.


Fix Level 2.2.43 Changes:

362. The C shell was incorrectly freeing up a fast mutex (a Critical
    Section under NT; a RAM semaphore under OS/2) that it didn't own
    in two separate instances.  This was innocuous except under a
    checked build of NT (i.e., one that checks parameters to all API
    calls), where it caused the C shell to crash if one attempted to
    run a script or to run a child process in the background.

363. The C shell was backgrounding all GUI apps run interactively,
    even when the context (e.g., "a; b" or "a && b") suggested there
    might be a serial dependency.  That's fixed.

364. [NT] The ANSI interpretation routines used by the C shell and
    all the utilities now use the visible window, not the whole buffer,
    as the basis for screen clearing, cursor positioning, etc.  The
    major effect is that typing "cls" in a window with a vertical
    scroll bar, clears the window but doesn't discard everything
    else in the buffer.

365. Everything has been recompiled.  The major reasons were to ensure
    that the new ANSI libraries were used everywhere and to take
    advantage of the latest VC++ compilers on Intel and Alpha and
    the new build 944 compiler for PowerPC.  The OS/2 version was
    also rebuilt to so it'd show the same timestamps and version
    numbers.

366. [NT] wtypes.h, objidl.h and oaidl.h have been added to the samples\skip
    file to suppress nuisance warnings generated by compiling with these
    headers.

367. [NT/PPC] The samples\cl.csh script now knows that on PowerPC
    builds after 944, the compiler is called cl.exe, not mcl.exe.

368. A minor bug in word selection was fixed.


Fix Level 2.2.44 Changes:

369. Grep and sed now accept escape sequences inside [...]-style
    ranges.  Also, sed has a new -N (normalize line ends) option
    that makes it easier to use sed scripts ported from UNIX that
    expect text to use the UNIX convention of a single \n character,
    not a \r\n pair, at the end of each line.

370. A minor typo in the help screen for ls was fixed.

371. The sum -p option didn't properly calculate the POSIX CRC.  It
    should now.


Fix Level 2.2.45 Changes:

372. [NT] A minor (actually, never observed) bug due to a typo in the
    semaphoring of the keyboard inside the C shell was fixed.


Fix Level 2.2.46 Changes:

373. A number of improverments were made to tar:
    1. [NT] With some of the newest high-performance scsi controllers,
       tar wasn't properly aligning its buffers, causing it to fail;
       that's now fixed.
    2. [NT] tar can now automatically detect the blocksize of a tape it's
       trying to read.  Under NT 3.5 or earlier, it just iterates over
       the possibilities, ratcheting by 512 bytes/block at a time.
       Under 3.51 or later, it uses a feature called variable block
       i/o to determine the blocksize directly.
    3. The help screen has been improved considerably with the addition
       of examples.
    4. The old -c option has been renamed the -y option so that a new
       -c option, meaning create a new archive, could be defined per
       the Posix standard.
    5. Tar now uses a default blocksize of 10,240 bytes, per the POSIX
       standard.
    6. Tar didn't properly identify and preserve the case of filenames
       passed on the command line when writing to an archive.  It does now.
    7. Tar didn't properly handle cases of collisions during extraction
       due to to files whose names differed only in case.  It does now.
    8. When writing to an archive, unless the archive is on a tape
       device, tar now pads only to the next 512-byte boundary, not
       the next blocksize.

374. [NT] The mt utility has been improved.  Under NT 3.51 or later,
    it uses variable block i/o to determine the media blocksize by
    actually reading the tape.  Also, the status output has been
    improved to give additional basic information without having to
    require the verbose option.

375. The help screens for dskwrite and dskread have been improved in
    the examples that mention tar.

376. [NT] The how2tar.{wri,txt} documents have been improved to reflect
    the use of the latest build of tar.


Fix Level 2.2.47 Changes:

377. Minor typos in the help screens for sum, sort, sed, tar, dskread
    and dskwrite were corrected.


Fix Level 2.2.48 Changes:

378. [NT] Under NT 3.5, if the tape device was set for a zero blocksize
    and tar was needed to determine the actual blocksize used on a tape,
    it would fail.  (The workaround was to set the blocksize to a non-zero
    value, e.g.., by using "mt blksize 512" beefore running tar.)  This
    new build includes a check for this problem under NT 3.5.


Fix Level 2.2.49 Changes:

379. [OS/2] Setting MIXEDCASEDRIVES and cd'ing to a non-existent
    relative path caused the shell to hang.  That's fixed.

380. The PV_Annuity and FV_Annuity formulas in the finance.csh sample
    script were wrong and have been corrected.

381. The trapz.csh script for numeric integration using the trapezoidal
    rule has been added to the samples directory.


Fix Level 2.2.50 Changes:

382. [OS/2] Wildcarding the drive letters didn't work with root
    directories.  For example, "echo [d-j]:\" would cause a crash.
    That's fixed.

383. [NT] The mixedpath function didn't work if any of the segments
    in the name it was given was a short, 8.3 name.  Those names are
    now properly converted to the long versions in mixed case.

384. The -e option didn't cause all input, including that read from
    scripts, to be echoed.  It does now.  A new per-thread shell
    variable, echoallinput works like echoinput except that echoallinput
    is inherited by child threads.  Also, when echoinput was set, the
    shell would print just the first line of any scripts (during the
    course of looking for a #!/bin/csh line at the start).  Scripts
    should, of course, have been echoed completely or not at all.  That's
    all fixed.

385. A new shell variable, OperatingSystem, has been defined which
    tells the name of the operating system on which the shell is running.

386. [NT] New shortname() and longname() functions have been added to
    allow filenames to be shrunk to 8.3 rules or expanded out (if they're
    not already) to long names for Win32 apps.  Also, new editing operators,
    :A (alternate shortname) and :L (longname) have been added.  These
    functions are useful in preparing arguments to be passed to DOS
    or Win3.x applications.

387. A new fullmixedpath() function and corresponding :M editing operator
    have been added.  These return the fullpath in mixed case of a file.

388. A new -C file test operator has been added which tells if a file
    has been compressed.  (Under OS/2 it always returns False.)

389. [NT and Win95] To be more sensible across both NT and Win95, the
    NTVersion variable has been renamed as WinBuild.  The old name
    still works (to avoid breaking any scripts), but new scripts should
    probably use the new name.  Also, the ver.csh script has been changed
    to use the OperatingSystem and WinVersion variables to report more
    accurately on Win95.


Fix Level 2.2.51 Changes:

390. [Win95] The WinBuild number is now masked to just the low-order
    16-bits returned by GetVersionEx; Win95 was putting a version number
    into the high-order bits that made the build number look funny.  E.g.,
    on build 484, the build number was coming back as 0x40001e4.  Masking
    just the low bits give the value 0x1e4 == 484 as really desired.

391. [NT/PPC] IBM and Motorola made a change in the way FP exceptions
    are handled in the math libraries at NT 3.51 RC 2 and later builds.
    That caused unhandled exceptions in the sqrt and other transcendental
    routines.  Also, they've improved the compiler optimization strategies.
    For these and other reasons, the shell and all the utilities have been
    re-compiled from scratch for the final release of 3.51 using the latest
    libraries.

392. [NT] The prsht.h and imm.h headers have been added to the samples\skip
    file.


Fix Level 2.2.52 Changes:

392. Under Berkeley Compatibility mode, the C shell now recognizes the
   "else if" combination typed on one line with only a single endif to
   close the structure.

393. Under Berkeley Compatibility mode, the C shell wasn't correctly
    recognizing quoted strings and other substitutions in =~ and !~
    patterns.

394. The C shell now correctly recognizes ${...} variable syntax as
    isolated from anything following, including what previously was
    interpreted as :-style editing operators, which are now treated
    as literal text.


Fix Level 2.2.53 Changes:

395. The C shell wasn't encoding argument words to child processes
    correctly in certain cases involving multiple backslashes.  E.g.,

      echo a\b\c | grep "..*\\"

    didn't work properly.  Similarly, the dskread, dskwrite, tar and
    OS/2 startwin utilities were decoding argv incorrectly in these
    same situations.  All these cases are now fixed.

396. [NT/PPC] Tar wasn't properly converting between the timestamp
    formats used in the tar archive and by Windows NT.  It does now.

397. The f2c.csh and c2f.csh scripts have been added to the samples
    directory for Fahrenheit/Celsius conversions


Fix Level 2.2.54 Changes:

398. ls.exe now knows about the compressed attribute supported
    under NT 3.51.  In long format (-L), a "C" in the attributes means
    the file is compressed; "C" can also be used in selecting file
    types just like the other attributes.  But this also forced the
    previously existing -C option for capitalization to be renamed
    as the -T (True mixed case) option.  Also, ls now has a new -F
    option that causes it to add a backslash following the name of
    any directories listed in its output.

399. ls, tar, mv, cp and rm now accept new READONLYFILES and
    READONLYDIRS environment variables for controlling the color
    used when listing files and directories marked read-only.

400. [NT] chmod.exe now knows how to compress or uncompress files
    and directories using +C or -C.

401. chmod, touch and mkdir have a new -w (warnings only) option that causes
    them to continue even if they encounter problems with some of the files.

402. [NT] mv, cp and rm could generate ANSI escape sequences if -l (logging)
    was used, but those sequences weren't getting displayed properly.
    That's fixed.

403. mkdir now has a new -r (recursive) option that causes it to make
    any missing intermediate directory levels that may be required.

404. The boot sector written by dskwrite has a hidden message with
    contact information for Hamilton Laboratories; that's been updated
    with our new address in Sudbury.

405. The "fix" for args ending in \'s done at 2.2.53 introduced a new
    off-by-one error that could corrupt the heap.  That's fixed.


Fix Level 2.2.55 Changes:

406. The allocate/free code for the C shell now has some additional
    checking added to watch for any possible heap corruption.

407. [NT] The shortname and longname functions and their associated
    :A and :L editing operators expanded "." and ".." names, producing
    erroneous results.  That's fixed.

408. [NT] ls could display the compressed attribute but not select
    based on it.  That's fixed.

409. [NT] If the machine was powered up, then a new tape was loaded,
    tar would fail.  Both tar and mt knew to ignore either a bus reset
    (initial power-on) or media changed status condition, but they
    didn't know to expect both in succession.  That's fixed.


Fix Level 2.2.56 Changes:

410. [NT/Alpha] A code generation error in Visual C++ caused alignment
    exceptions in the C shell and many of the utilities if the Alpha
    was run with "axpalign /enable".  Simplifying the code has avoided
    the problem.

411. If the home directory was set to the root of any drive, then any
    attempt to pass arguments to a child of the form "~\foo" caused
    an assertion failure.  That's fixed.

412. The samples\sh_2_csh\readme file has been updated (finally) with
    our new address and phone numbers.


Fix Level 2.2.57 Changes:

413. The shell would crash if it encountered an error inside the evaluation
    of a quoted string if it had already collected part of the result.
    E.g., echo "$@ $@:-$@" would cause the failuure.  That's fixed; you
    now get the appropriate error message and the shell continues.


Fix Level 2.2.58 Changes:

414. Tar didn't properly resolve filenames passed on the command line
    if the MIXEDCASEDRIVES environment variable was set.  That's fixed.


Fix Level 2.2.59 Changes:

415. Xd didn't work right with a radix < 8 if byte or word formatting
    was requested.  That's been fixed.

416. The help screen for tar had an error in the description of
    one of the examples that's been fixed.

417. The C shell's :-style pathediting routines weren't rescanning
    the results and could overlook cases where the results contained
    C shell wildcard characters.  Downstream, this could cause the
    C shell to crash when passing arguments to child processes, e.g.,
    in "myecho $x:A".

418. Multi-character word separators, e.g., >>, inside an alias definition
    containing a history reference were treated as ordinary text during
    any expansion.  That's fixed.

419. Passing a null character to a child process (e.g., myecho a ^0 b)
    from the C shell caused the shell to crash.  Passing it to an
    internal command (e.g., echo a ^0 b) produced garbage.  That's
    now fixed.

420. [NT] The dskread and dskwrite utilities and the blksize sample
    now use page-aligned rather than paragraph-aligned buffers.

421. [NT] A new ps -s option has been added to allow ps to list details
    of all the processes system-wide.

422. sunrise.csh has been added to the samples directory.

423. [NT] The C shell and all the utilities and samples have been
    internationalized to support use of languages such as Russian that
    use non-Latin alphabets.  Non-Latin characters can now be used in
    filenames, wildcards, strings, variable names, etc.

424. [NT] The sed -s option for reading a sed script from stdin didn't
    work.  It does now.

425. Dskwrite now puts "Hamilton", not "IBM 10.2" into the system name
    field immediately preceding the Bios Parameter Block, and "FAT12",
    not "FAT" into the reserved field of the BPB in the boot record when
    formatting a diskette.


Fix Level 2.2.60 Changes:

426. Setting the search path to a null list caused the shell to crash.
    It's hard to know why anyone would want to do this, but it should
    have worked.  It does now.

427. "uuencode infile decodename" didn't work; it complained it couldn't
    open Stdin.  That's fixed.


Fix Level 2.2.61 Changes:

428. [NT] mt and tar weren't correctly examining the version number
    for NT and were incorrectly concluding that variable blocksizes
    weren't supported.  This limited their ability to diagnose unknown
    blocksizes.


Fix Level 2.2.62 Changes:

429. The shell could trip an assert and crash while building up the
    command line to be passed to a child process in certain cases, e.g.,
    del '$*.out', where del invokes the alias defined in startup.csh.
    That's fixed.



Known Bugs and Limitations

1.  The keyboard editing logic only checks to see if the cursor's been moved
    by a background process or thread when it reads the first keystroke.  That
    catches most situations, but if you begin typing a command and then some
    background activity starts writing to the screen or moving the cursor,
    the result can be a scrambled display.

2.  The C shell does not yet understand the special device names like CONIN$
    that NT supports.  The following statement won't work in this build:

      cat < conin$

    (It's not clear this can be made to work; NT seems to have problems
    creating handles to conin$ or conout$ that can be dup'ed and inherited
    by a child process.)

3.  To kill a NT GUI app, the -! option must be used, specifying
    that TerminateProcess should be called.  While certainly effective,
    TerminateProcess does not notify any DLL's that the process is
    exiting.  It's not currently possible to kill a Win3.x app, seemingly
    because of a bug in NT.

4.  Touch'ing a directory on an OS/2 machine over Lan Manager doesn't do
    anything under NT 3.1; it works over a network to another NT machine or
    under Daytona (NT 3.5).

5.  Ctrl-S and Ctrl-Q flow control to the console window is not yet supported.

6.  ls pagefile.sys didn't work under the Daytona beta builds because the
    underlying Win32 GetFileAttributes("\\pagefile.sys") call didn't work.
    But ls'ing the root directory containing pagefile.sys did work because
    the FindFirstFile call worked.  This was fixed in the Daytona final
    release.

7.  cron will not start as a service if installed with the -u option
    under Windows NT 3.51, build 944.  This is an NT bug that's fixed
    under Release Candidate 2, build 1024.



Thank you for using Hamilton C shell.


                  Douglas A. Hamilton
                  December 14, 1995

   +--------------------------------------------------------+
   |                                                        |
   |  NOTE:  NEW ADDRESS AS OF FRIDAY, NOVEMBER 4, 1994!!!  |
   |                                                        |
   |              Hamilton Laboratories                     |
   |              21 Shadow Oak Drive                       |
   |              Sudbury, MA  01776-3165                   |
   |              U.S.A.                                    |
   |                                                        |
   |     Phone:   508-440-8307                              |
   |       FAX:   508-440-8308                              |
   |                                                        |
   +--------------------------------------------------------+


      Internet:   hamilton@bix.com
   BIX Network:   hamilton
      MCI Mail:   389-0321
         Telex:   6503890321
