*Synopsis*: ksh93 does not set default PATH *Change Request ID*: 6913823
*Synopsis*: ksh93 does not set default PATH Product: solaris Category: shell Subcategory: korn93 Type: Defect Subtype: Status: 1-Dispatched Substatus: Priority: 3-Medium Introduced In Release: Introduced In Build: Responsible Engineer: Keywords: === *Description* ============================================================ According to the ksh93(1) man page the ksh93 should set default value to PATH variable: ----------------------------------8<--------------------------------------- PATH The search path for commands. Except in .pro- file, users cannot change PATH if executing under rksh93. See the Execution section of this manual page. The shell specifies a default value to PATH. ... The shell variable PATH defines the search path for the directory containing the command. Alternative directory names are separated by a colon (:). The default path is /bin:/usr/bin:, specifying /bin, /usr/bin, and the current directory in that order. The current directory can be speci- fied by two or more adjacent colons, or by a colon at the beginning or end of the path list. If the command name con- ----------------------------------8<--------------------------------------- But apparently that's not true: $ uname -a SunOS tortuga 5.11 snv_130 i86pc i386 i86pc $ env - /usr/bin/ksh93 @tortuga:~/home/mt198684$ env _=*25817*/usr/xpg4/bin/env PWD=/home/mt198684 SHLVL=1 A__z="*SHLVL @tortuga:~/home/mt198684$ set COLUMNS=207 ENV=.sh.ENV FCEDIT=/bin/ed HISTCMD=3 IFS=$' \t\n' JOBMAX=0 KSH_VERSION=.sh.version LINENO=1 LINES=55 MAILCHECK=600 OPTIND=1 PPID=25713 PS1=$'$(set +o xtrace +o errexit\n printf "%*s\\r%s" COLUMNS ""\n printf "%...@%s:" "${LOGNAME}" "$(/usr/bin/hostname)"\n\t\tellip="${\n\t\t\t[[ "${LC_ALL}/${LANG}" == ~(Elr)(.*UTF-8/.*|/.*UTF-8) ]] &&\n\t\t\t\tprintf "\\u[2026]\\n" || print "..." ; }"\n\t\tp="${PWD/~(El)${HOME}/\\~}"\n\t\t(( ${#p} > 30 )) &&\n\t\t\tprint -r -n -- "${ellip}${p:${#p}-30:30}" ||\n\t\t\tprint -r -n -- "${p}"\n\t\t[[ "${LOGNAME}" == "root" ]] && print -n "# " || print -n "\\$ "\n\t\t)' PS2='> ' PS3='#? ' PS4='+ ' PWD=/home/mt198684 RANDOM=12111 SECONDS=5.960 SHELL=/bin/sh SHLVL=1 TMOUT=0 _=env @tortuga:~/home/mt198684$ echo $PATH @tortuga:~/home/mt198684$ *** (#1 of 1): 2010-01-03 22:06:19 GMT+00:00 <User 1-2GGNX3> === *Public Comments* ======================================================== === *Workaround* ============================================================= === *Additional Details* ===================================================== Targeted Release: Commit To Fix In Build: Fixed In Build: Integrated In Build: Verified In Build: See Also: 6913822 Duplicate of: Hooks: Hook1: Hook2: Hook3: Hook4: Hook5: Hook6: Program Management: Root Cause: Fix Affects Documentation: No Fix Affects Localization: No === *History* ================================================================ Date Submitted: 2010-01-03 22:06:19 GMT+00:00 Submitted By: <User 1-2GGNX3> Status Changed Date Updated Updated By === *Service Request* ======================================================== Impact: Limited Functionality: Secondary Severity: 4 Product Name: solaris Product Release: solaris_nevada Product Build: snv_130 Operating System: snv_130 Hardware: x86 Submitted Date: 2010-01-03 22:06:19 GMT+00:00 === *Multiple Release (MR) Cluster* - 0 ======================================