PROBLEM:  (CLD/USG-01932)	 (Patch ID: OSF400-002)
********
This patch fixes a problem in which a system running ksh as the login shell
would wipe out the previous contents of the history file (for example, 
.sh_history) and put the new information in the file.  This occurred after a 
user logged into an ULTRIX system from an OSF/1 system using the telnet or 
rlogin commands.

On an associated ULTRIX machine, an official patch for the cld HPAQ6E7B needs
to be installed when it uses the NFS mounted filesystem from the UNIX machine.

Do the following to reproduce this problem:

1. Setup a new account on an OSF/1 V3.0 (also tried T3.2-2) with /bin/ksh as 
   the login SHELL and with the home directory NFS mounted from an ULTRIX 
   system.

2. Rlogin into the OSF/1 system from an ULTRIX system and issue a few commands.
   Make sure "history" shows the commands you just issued. Cat ".sh_history" 
   just to sanity check what's in there; logout.

3. Rlogin into the ULTRIX system and issue a few commands.  Then cat 
   ".sh_history" file and see whether the previous commands get written from 
   the OSF/1 system or the ULTRIX system.  You can see new commands from the 
   ULTRIX system get written into the .sh_history file, but the commands from 
   the OSF/1 system get wiped out.

4. Rlogin into the OSF/1 system again from the ULTRIX system. Cat ".sh_history"
   to ensure that the ULTRIX commands still exist, then enter a few commands.
   Finally, cat ".sh_history" file and notice that the previous ULTRIX commands
   get wiped out.

PROBLEM:  (UVO104297)	 	(Patch ID: OSF400-118)
********
This patch fixes a problem that occurs when using the Korn shell (ksh). 
Keyboard input is not echoed when a user exits via a trap, after editor options
have been set in ksh.

To restore the tty modes, enter the following command:
    <newline> stty sane <newline>

To reproduce the problem execute the following:
    /usr/bin/ksh
    set -o emacs
    touch /tmp/foo
    trap 'rm -f /tmp/foo' EXIT
    TMOUT=1

Now wait 60 seconds.  When ksh exits, the keyboard should echo characters. If 
it does not, then this bug has occurred.

PROBLEM:  (QAR 50297)	 	(Patch ID: OSF400-169)
********
This patch fixes a problem with the ksh shell program. ksh prevents a command, 
which runs in a sub-process, from writing to a tape device.  For example:

$ /usr/bin/ksh -c "/bin/echo foo | /bin/cat > /dev/rmt0h"
/usr/bin/ksh: /dev/rmt0h: cannot create

PROBLEM:  (HPAQ22AF7)	 	(Patch ID: OSF400-157)
********
This patch fixes a problem where an attribute had been set to "read only"
and the built-in command typeset (eg. typeset +r <attr>) could not set
it back (unset) to "read/write" status.

If the built-in command 'typeset +r <attr>' is entered after an attribute has
been set to 'read-only' status (eg. typeset -r attr=val), the following message
is displayed:

             ksh: <attr>: is read only.

Enter 'typeset -r <attr=val>' and then enter 'typeset +r <attr>'.  As a result,
an error message will be issued.

PROBLEM:  (QAR 51086)		 (Patch ID: OSF400-234)
********
This patch fixes a problem that occurs if the kernel tunable variable 
"old-obreak" is set to zero and the system is running the Korn shell
(ksh). The shell gets caught in an infinite loop printing a message
similar to the following. Eventually the process will core dump.

     /adp/bin/adpbkup[135]: no space

PROBLEM:  (QAR  26933)		 (Patch ID: OSF400-270)
********
This patch fixes a problem in which the ksh command periodically prints
erroneous characters instead of the command that was typed.

The only identifiable effects are loss of logging information and the loss
of access to the command from the command line edit.

PROBLEM:  (QAR 52892,49928)	 (Patch ID: OSF400-304)
********
This patch fixes a problem in which the ksh shell sometimes reverses the
group id (GID) and the effective group id (egid) of the calling process.

For example if the calling process (starter) spawns ksh to execute the
"/usr/bin/id" command, the output would be:

$ ./starter xx
uid=4294967200(vsctest) gid=15(users) egid=4(bin) groups=0(system)
uid=4294967200(vsctest) gid=4(bin) egid=15(users) groups=0(system)
$
### Note that the gid and egid have been interchanged

PROBLEM:  (CLD HGOQ50006, QAR 52992) (Patch ID: OSF400-326)
********
This patch fixes problems that occur when using the ksh shell. When the PATH
for a command is not found, the following error message is displayed.  Also,
when the set command is executed, the system core dumps.

     /bin/ksh: invalid multibyte character

PROBLEM:  (USG-05628)		 (Patch ID: OSF400-435)
********
This patch fixes a problem that occurs when using the Korn shell (ksh).
Variables set with the typeset -L[n] built-in command do not work correctly
when other subshells are spawned. For example:

Example: < Incorrect results >
$ /usr/bin/ksh
$ typeset -xL3 var=hello
$ typeset | grep var
export 3 leftjust 3 var
$ echo $var
hel
$ /usr/bin/ksh
$ typeset -xL3 var=hello
$ typeset | grep var
export 3 leftjust 3 var
$ echo $var

$
Example: < Correct results >
$ /usr/bin/ksh
$ typeset -xL3 var=hello
$ typeset | grep var
export 3 leftjust 3 var
$ echo $var
hel
$ /usr/bin/ksh
$ typeset -xL3 var=hello
$ typeset | grep var
export 3 leftjust 3 var
$ echo $var
hel
$


FILE(s):

/usr/bin/ksh 		subset OSFBASE400
CHECKSUM: 20753    264 
/usr/bin/posix/sh	subset OSFBASE400
CHECKSUM: 20753    264 
