Bug 576795

Summary: KSH default path missing 'cwd' /bin:/usr/bin missing colon at the end
Product: Red Hat Enterprise Linux 5 Reporter: Tomas Smetana <tsmetana>
Component: man-pages-overridesAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5.5CC: bmr, cww, kvolny, mfranc, msvoboda, tao, varekova
Target Milestone: ---Keywords: ManPageChange, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The sh(1) man page now contains fixed information about the default value of the PATH variable.
Story Points: ---
Clone Of:
: 699641 (view as bug list) Environment:
Last Closed: 2011-07-21 07:36:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 590060, 699641, 702008    
Attachments:
Description Flags
patch none

Description Tomas Smetana 2010-03-25 08:49:17 UTC
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]

Comment 2 Michal Hlavinka 2010-03-25 09:24:39 UTC
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.

Comment 10 Tomas Smetana 2010-05-04 07:24:13 UTC
I think this bugzilla should be closed as WONTFIX now.

Thank you.

Comment 11 Tomas Smetana 2010-05-04 07:42:41 UTC
Eh. Forget the previous comment please.  There is still the manual page which should be fixed.

Sorry....

Comment 13 RHEL Program Management 2010-08-09 18:41:22 UTC
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.

Comment 14 Michal Hlavinka 2010-10-06 11:32:37 UTC
why was this closed as wontfix?

Comment 17 RHEL Program Management 2011-01-11 21:10:33 UTC
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.

Comment 18 RHEL Program Management 2011-01-11 22:43:01 UTC
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.

Comment 21 Michal Hlavinka 2011-04-27 07:10:32 UTC
Created attachment 495119 [details]
patch

Comment 28 Miroslav Svoboda 2011-07-15 16:21:19 UTC
    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.

Comment 29 errata-xmlrpc 2011-07-21 07:36:07 UTC
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