Red Hat Bugzilla – Bug 576795
KSH default path missing 'cwd' /bin:/usr/bin missing colon at the end
Last modified: 2011-07-21 03:36:07 EDT
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:
cp /bin/ls /tmp/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
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.
Eh. Forget the previous comment please. There is still the manual page which should be fixed.
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]
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.
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.