Patch Name: PHCO_23892 Patch Description: s700_800 11.00 ed(1) patch Creation Date: 01/04/26 Post Date: 01/05/01 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_23892 Symptoms: PHCO_23892: 1. ed(1) doesn't work as expected with = operator. 2. ed(1) operator .= gives incorrect output when UNIX95 set. 3. ed(1) core dumps on file containing (n)k - 2 lines. 4. ed(1) fails to expand multibyte characters. 5. ed(1) fails to handle multiple instances of SIGHUP signal. 6. ed(1) has inconsistencies in the 'G' command. (UNIX95 Behavior) Defect Description: PHCO_23892: 1. ed(1) doesn't work as expected with = operator. After the current line for the file in the buffer has been changed, = and $= displays the current line number instead of the last line. Resolution: Code is modified to correct the behavior. 2. ed(1) operator .= gives incorrect output when UNIX95 set. The operator .= behaves wrongly, once operator = or $= is used. Resolution: The behaviour of .= operator is rectified after setting the current line. 3. ed(1) core dumps on file containing (n)k - 2 lines. If a line is added to a file having (n)k - 2 lines, and then delete for the current line is performed on it, ed(1) dumps core. Resolution: Code is modified to correct the behavior. 4. The test suite for command ed(1) fails on 11.10 ic11A only, when locale is set to ja_JP.SJIS. Resolution: Code is modified to correct the behavior. 5. ed(1) fails to handle multiple instances of SIGHUP signal. Resolution: Now, ed(1) signal handler handles multiple instances of SIGHUP signal. 6. ed(1) has inconsistencies in the 'G' command. (UNIX95 Behaviour) Resolution: Code is modified to handle the inconsistencies. SR: 8606170252 8606171234 8606176643 8606102787 4701358614 Patch Files: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/ed.cat /usr/bin/ed /usr/bin/red what(1) Output: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lib/nls/msg/C/ed.cat: None OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/ed: $Revision: 82.1.1.4 $ PATCH_11_00: ed_crypt.o ed.o hpux_rel.o 01/04/26 OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/bin/red: $Revision: 82.1.1.4 $ PATCH_11_00: ed_crypt.o ed.o hpux_rel.o 01/04/26 cksum(1) Output: OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 946664817 4783 /usr/lib/nls/msg/C/ed.cat OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 650281082 61440 /usr/bin/ed OS-Core.CMDS-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 650281082 61440 /usr/bin/red Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 90 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_23892 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_23892.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_23892. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHCO_23892.depot WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_23892.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_23892.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_23892.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None