이 콘텐츠는 선택한 언어로 제공되지 않습니다.

1.91. ksh


1.91.1. RHBA-2009:1686: bug fix update

Note

This update has already been released (prior to the GA of this release) as errata RHBA-2009:1686
An updated ksh package that fixes two bugs is now available.
KSH-93 is the most recent version of the KornShell by David Korn of AT&T Bell Laboratories. KornShell is a shell programming language which is also compatible with "sh", the original Bourne Shell.
This updated ksh package includes fixes for the following bugs:
* when a ksh script included multibyte characters, ksh's script parser then failed to parse the script and printed a "syntax error" message. This updated package corrects this error: ksh's script parser now correctly handles multibyte characters and no error is returned when they are found. (BZ#543447)
* the ksh shell uses a special variable, "$!", which contains the process ID (pid) of the last background job or background function. However, the $! variable did not contain the correct pid when it was called within a ksh function (defined with the "function" syntax). With this update, referencing the $! special variable works as expected and the correct process ID of the last background job or function is returned, even when it is referenced from within a ksh script function. (BZ#544974)
All KornShell users are advised to upgrade to this updated package, which resolves these issues.

1.91.2. RHBA-2010:0234: bug fix and enhancement update

An updated Ksh package that fixes various bugs is now available.
KSH-93 is the most recent version of the KornShell by David Korn of AT&T Bell Laboratories -- a shell programming language upwards-compatible with "sh" (the Bourne Shell).
This updated ksh package upgrades ksh to the more recent 2010-02-02 upstream version (release ksh93t+) In addition, this updated ksh package addresses the following bugs:
* running ksh scripts for a long time on an overloaded system resulted in a race condition caused by an inner linear job list getting looped. This resulted in ksh utlising 100 % of the cpu capacity. Some operations on the job list were reordered to prevent this race condition occuring, allowing ksh scripts to be run normally on the system. (BZ#435159)
* when .profile executed a return command, some new processes were executed without working stdin, because it was already closed. This version correctly restores the shell state after return was used in .profile making stdin available for new processes. (BZ#506790)
* ksh returned an incorrect exit code of one when unsetting a variable that was already unset. Ksh now returns zero exit code. (BZ#508869)
* when a parent of a background process was completed, ksh did not wait for output of the background process. Ksh now waits for the output of the background process so preventing the loss of data. (BZ#509326)
* when emacs editing mode was used and an alias was set, it was sometimes evaluated too early causing a syntax error. Aliases are evaluated later in the process now which prevents false positive syntax errors. (BZ#513967)
* ksh indicated commands in the man page that are not available. Man page is now amended to indicate that these commands are not available on Linux systems. (BZ#514485)
* the ksh shell uses a special variable, "$!", which contains the process ID (pid) of the last background job or background function. However, the $! variable did not contain the correct pid when it was called within a ksh function (defined with the "function" syntax). With this update, referencing the $! special variable works as expected and the correct process ID of the last background job or function is returned, even when it is referenced from within a ksh script function. (BZ#520383)
* when a ksh script included multibyte characters, the ksh script parser sometimes failed to parse the script and printed a syntax error message. This updated package corrects this error: the ksh script parser now correctly handles multibyte characters and no error is returned when they are found. (BZ#538655)
* when the built-in ksh typeset function was used with the array variable, it was affecting the size of the array by appending one empty value. This is now corrected and typeset does not unintentionally affect size of arrays. (BZ#538857)
* some upstream behavioural changes of ksh were not sufficiently documented, specifically parenthesis which was supported in ksh-93r or older. ksh Now ships Release and ChangeLog documents wherein important changes are documented. (BZ#541654)
* when evaluating a non-number variable that contains a point in a numeric comparison, ksh crashed with a segmentation fault. With this update, ksh checks whether the point has numerical or parent separator meaning, and produces only an error message when appropriate. (BZ#548519)
* when the array variable was declared using the built-in 'set', but not defined, this declaration did not take effect. The built-in 'set' included in the updated ksh declares array variables correctly. (BZ#553611)
All users of ksh are advised to upgrade to this updated package, which resolves these issues.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.