Patch-ID# 101791-03 Keywords: ksh DEBUG ERR trap SIGSEGV core emacs ksh-88i Synopsis: SunOS 5.3: ksh patch Date: May/14/97 Solaris Release: 2.3 SunOS Release: 5.3 Unbundled Product: Unbundled Release: Topic: SunOS 5.3: ksh patch BugId's fixed with this patch: 1126568 1138687 1143687 1146561 1146564 1149972 1150508 1172622 1174113 1174450 4037786 Changes incorporated in this version: 4037786 Relevant Architectures: sparc Patches accumulated and obsoleted by this patch: Patches which conflict with this patch: Patches required with this patch: Obsoleted by: Files included with this patch: usr/bin/ksh usr/bin/rksh Problem Description: 4037786 The limit of 1024 elements in an array should be increased to 2048. (from 101791-02) 1174450 ksh script goes into an infinite loop if function is passed to trap as argument 1172622 ksh dies with SIGSEGV if home directory is not writable 1174113 ksh v command in vi mode doesn't always replay command 1126568 korn shell core dumps with a large no of jobs 1138687 Problem yanking lines in emacs 1143687 ksh doesn't allow you to stop some pipelines 1146561 upgrade ksh to ksh-88i 1146564 ksh doesn't announce new mail if mail file shrinks 1149972 DEBUG and ERR signals in ksh trap gives bad trap error 1150508 many problems in emacs mode of ksh in Solaris 2.x This patch fixes 3 bugs. If the trap command given to the DEBUG trap is a function, ksh will loop when processing the DEBUG trap. In certain cases, if your home directory is read-only, ksh will dump core when you log in. The "fc -e" command (which is called from the "v" command in vi mode) would refuse to run the commands in the file if the file was not changed. This was incorrect behavior. The commands are always run, unless the editor exits with a non-zero exit code. korn shell core dumps with a large number of jobs. In a cmdtool session, when you have profiled your Korn shell for Emacs command line editing via 'export VISUAL=emacs', the C-y (control y) after a C-k (control k) does not yank the killed text. Instead, it keeps the cursor right where it was at the point the C-y was attempted, and subsequent carriage returns echo's the prompt down and eventually out of the window -- giving the visual effect of locking the window in place while the slider bar advances upward. When running a pipeline in ksh, sending a suspend character (^Z) will cause the terminal that you are on to hang. The only way to get control of the terminal back is to send a signal to the processes, as they have been suspended (or put into the "T" state, as told by ps -l), but the shell has not returned to prompting mode. ksh keeps track of when the mail file was last modified and what size it was. If the file was modified, but shrinks, ksh doesn't think there's new mail. Unfortunately, this often happens when the previously new mail is read and deleted, and the new new mail is shorter than the old new mail. (from 101791-01) 1149972 DEBUG and ERR signals in ksh trap gives bad trap error The "ERR" and "DEBUG" trap special names are not recognized and result in "bad trap" error messages. % trap - err err: bad trap % trap - debug err: bad trap Patch Installation Instructions: -------------------------------- Refer to the Install.info file within the patch for instructions on using the generic 'installpatch' and 'backoutpatch' scripts provided with each patch. Any other special or non-generic installation instructions should be described below. Special Install Instructions: ----------------------------- None.