per ksh93 man page: "The default path is /bin:/usr/bin: (specifying /bin, /usr/bin, and the current directory in that order)." This appears to only include /bin:/usr/bin This breaks compatability with Solaris/AIX and related scripts expecting consistent ksh behaviour across platforms when there is no environment variable set (for example, non interactive login sessions via rsh). How to reproduce: /bin/ksh cp /bin/ls /tmp/testls cd /tmp unset PATH testls -ksh: testls: not found [No such file or directory]
Severity: Low = Problem is minor loss of function, or other problem where *easy workaround is present*. you can use following workaround export PATH=$PATH: Also do not expect any change at all, because upstream would definitely refuse this AND it would break compatibility a lot (with other shells) AND it would be insecure AND it would break users expectations. The only thing I can do is to remove/fix that confusing sentence in man page. This can be reproduced with latest ksh version released by upstream, which is expected because from functionality POV this is notabug.
I think this bugzilla should be closed as WONTFIX now. Thank you.
Eh. Forget the previous comment please. There is still the manual page which should be fixed. Sorry....
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
why was this closed as wontfix?
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.
Created attachment 495119 [details] patch
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The sh(1) man page now contains fixed information about the default value of the PATH variable.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-1009.html