*Synopsis*: ksh autocompletion does not obey $PATH
CR 6782052 changed on Aug 31 2009 by <User 1-1SURPB>
=== Field ============ === New Value ============= === Old Value =============
Status 3-Accepted 1-Dispatched
====================== =========================== ===========================
*Change Request ID*: 6782052
*Synopsis*: ksh autocompletion does not obey $PATH
Product: solaris
Category: shell
Subcategory: korn93
Type: Defect
Subtype:
Status: 3-Accepted
Substatus:
Priority: 3-Medium
Introduced In Release:
Introduced In Build:
Responsible Engineer:
Keywords: opensolaris
=== *Description* ============================================================
Category
shell
Sub-Category
korn
Description
a lot of programs i have in $PATH are not listed when triggering
auto-completion. For example all the DTT scripts.
Frequency
Always
Regression
No
Steps to Reproduce
Tabbing for python
[<email address omitted>:~]> py
1) /usr/bin/pyrexc
2) /usr/bin/pygobject-codegen-2.0
3) /usr/bin/pydoc
4) /usr/bin/pygtk-codegen-2.0
5) /export/home/raichoo/.local/bin/python3.0
6) /export/home/raichoo/.local/bin/python3.0-config
7) /export/home/raichoo/.local/bin/pydoc
[<email address omitted>:~]> python3.0
but python does not show up:
[<email address omitted>:~]> which python
/usr/bin/python
Expected Result
everything in the path that matches the completion should be listed.
Actual Result
only a few options are listed
Error Message(s)
none
Test Case
none
Workaround
none
Submitter wants to work on bug
No
Additional configuration information
using ksh93 on opensolaris 2008.11 as interactive shell.
set -o vi
set -o noclobber
set -o ignoreeof
set -o globstar
export HOSTNAME=$(hostname)
_checkdir()
{
if [[ $PWD == $HOME ]]
then
print -n "~"
elif [[ $PWD == "/" ]]
then
print $PWD
else
print -n ${PWD##*/}
fi
}
if [[ $(whoami) == "root" ]]
then
export PS1='[r...@$hostname:$PWD]# '
else
export PS1='[$u...@$hostname:$(_checkdir)]> '
fi
export
PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/bin:/sbin:/opt/LWS/bin:/opt/netbeans-6.5ss/bin:/opt/DTT/Bin:/opt/SunStudioExpress/bin:/usr/sfw/bin:/export/home/raichoo/.local/bin
export
MANPATH=/usr/share/man:/usr/X11/share/man:/opt/LWS/man:/opt/SunStudioExpress/man
export PAGER="/usr/bin/less -ins"
export TERM="xterm-color"
alias prstat='TERM=xterm prstat'
alias !!='fc -s -1'
alias ls='ls -F'
*** (#1 of 1): 2008-12-08 11:16:52 GMT+00:00 <User 1-F4SZV>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release:
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also:
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5:
Hook6: <email address omitted>
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2008-12-08 11:16:52 GMT+00:00
Submitted By: <User 1-F4SZV>
Status Changed Date Updated Updated By
3-Accepted 2009-08-31 09:31:50 GMT+00:00 <User 1-1SURPB>
=== *Service Request* ========================================================
Impact: Significant
Functionality: Primary
Severity: 2
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_101
Operating System: solaris_nevada
Hardware: x86
Submitted Date: 2008-12-08 11:16:52 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================