Patch Name: PHCO_12960 Patch Description: s700_800 10.10 ksh(1) cumulative patch Creation Date: 97/10/23 Post Date: 97/11/04 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 Products: N/A Filesets: OS-Core.UX-CORE OS-Core.CORE-ENG-A-MAN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_12960 Symptoms: PHCO_12960: 1) while sourcing a script which looks like cat bigfile | while read blhaa... the ksh logsout,this is a regression of previous fix for the defect DTS DSDe 429747. The fix for the defect DTS DSDe 429747 is withdrawn in this patch. 2) Problem with ksh script sourcing another script, if the standard output and error are closed. PHCO_10721: 1) When ksh sees history file (using old internal magic cookies) of pre-10.10 release, it simply unlinks (discards) that history file. 2) When any shell-builtin command returns NULL in command substitution and the execution trace flag -x is on, then the output of the next shell-builtin in command substition is affected. PHCO_9486: 1) While using in-line command editing, characters would sometimes appear that had not been typed by the user, most commonly ^B. Also, in editing long history lines, especially near the end of the lines, garbage characters would appear and the line couldn't be edited properly. 2) ksh was leaving fd 10 [used for history file] always open. File descriptor 10 was being reserved for use by the shell, but the file descriptor was opened in a way that it would remain open across an exec(2) system call. 3) ksh returns incorrect exit-status when it executes 'exit' command on trap. For Example, When you run the following script "trap.sh" #! /usr/bin/ksh trap "_Exit" 0 1 2 3 15 _Exit(){ exit } rm FOOOOOOOO ls FOOOOOOOO $trap.sh $echo $? 0 The exit-value of the above script should be of last command executed that is 2 (exit value of ls FOOOOOOOO), rather it will return 0. PHCO_9087: 1) Trap on EXIT set outside a function is not executed. For example, trap 'echo exiting shell' EXIT f() { exit } f should output "exiting shell" but instead produces no output. 2) When a here-document is used on the left side of a pipeline that is put into the background, the shell sometimes fails to open temporary files. For example, cat < Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_12960. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_12960.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_12960.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None