Patch Name: PHCO_28633 Patch Description: s700_800 11.11 ed(1) cumulative patch Creation Date: 03/10/14 Post Date: 03/10/27 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CMDS-MIN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP OS-Core.CMIN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_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_28633 Symptoms: PHCO_28633: ( SR:8606293805 CR:JAGae57544 ) ed(1) cannot handle files having lines more than 2048 characters. ( SR:8606309835 CR:JAGae72710 ) ed(1) doesn't work as expected with = operator. ( SR:8606309840 CR:JAGae72715 ) ed(1) gives incorrect output for .= operator when environment variable 'UNIX95' is set. Defect Description: PHCO_28633: ( SR:8606293805 CR:JAGae57544 ) ed(1) was unable to handle files having line length more than 2048 characters. Steps to reproduce the problem is as below: 1) Create a file with a line of length 2050 characters. 2) Run ed(1) on the file. 3) Use help (h) to check for the error message. For example: $ perl -e 'print "l" x 2050' > file $ echo >> file $ ed file ? h ed: Line too long. Resolution: ed(1) is modified to handle files having line length up to 4096. ( SR:8606309835 CR:JAGae72710 ) 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. Steps to reproduce the problem is as below: Open a testfile using ed(1) which has minimum two lines: For example: $ ed prog 3321 1 #! /usr/bin/ksh = 1 In place of '1' ed(1) should display the last line number. Resolution: Code is modified to correct the behavior. ( SR:8606309840 CR:JAGae72715 ) ed(1) operator .= gives incorrect output when UNIX95 set. The operator .= behaves wrongly, once operator = or $= is used. Steps to reproduce the problem is as below: Open a testfile using ed(1) which has minimum two lines: $ export UNIX95=1 $ ed prog 3221 1 #! /usr/bin/ksh = 137 $= 137 .= 137 The current line has moved from 1st line to last line. The last line should display '1' in place of '137'. Resolution: The behavior of .= operator is rectified after setting the current line. Enhancement: No SR: 8606293805 8606309835 8606309840 Patch Files: OS-Core.CMDS-MIN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/ed /usr/bin/red OS-Core.CMIN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/ed.1 /usr/share/man/man1.Z/red.1 what(1) Output: OS-Core.CMDS-MIN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/bin/ed: ed.c $Date: 2003/04/03 03:15:21 $Revision: r11.11/2 PATCH_11.11 (PHCO_28633) $Revision: @(#) ed R11.11_BL2003_1014_2 PATCH_11.11 PHCO_28633 Tue Oct 14 06:41:18 PDT 2003 $ /usr/bin/red: ed.c $Date: 2003/04/03 03:15:21 $Revision: r11.11/2 PATCH_11.11 (PHCO_28633) $Revision: @(#) ed R11.11_BL2003_1014_2 PATCH_11.11 PHCO_28633 Tue Oct 14 06:41:18 PDT 2003 $ OS-Core.CMIN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: /usr/share/man/man1.Z/ed.1: None /usr/share/man/man1.Z/red.1: None cksum(1) Output: OS-Core.CMDS-MIN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 1799882302 61440 /usr/bin/ed 1799882302 61440 /usr/bin/red OS-Core.CMIN-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64, v=HP: 4191065984 12381 /usr/share/man/man1.Z/ed.1 4191065984 12381 /usr/share/man/man1.Z/red.1 Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 70 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_28633 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_28633.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_28633. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false 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_28633.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_28633.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_28633.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None