http://bugs.grommit.com/show_bug.cgi?id=577
Summary: New /bin/alias, /bin/unalias ksh93 scripts fail with
"builtin: alias: restricted name"
Product: ksh93-integration
Version: unspecified
Platform: All
OS/Version: Solaris 11/Nevada
Status: NEW
Severity: blocker
Priority: P3
Component: App/ksh93
AssignedTo: roland.mainz at nrubsig.org
ReportedBy: april.chin at sun.com
CC: ksh93-integration-discuss at opensolaris.org
This error is not currently seen in Solaris/Opensolaris, but is
part of the pending update to ksh93, which includes replacement
of the /usr/bin/{alias,unalias,bg,cd,command,fc,fg, et al} ksh scripts,
with ksh93 scripts, to call the ksh93 built-in comamnds.
The use of the following in the ksh93 /usr/bin/{alias,unalias} script:
builtin ${CMD}
where CMD is "alias" for /bin/alias or "unalias" for /bin/unalias
causes an error message to be output:
builtin: alias: restricted name
For example:
% /bin/alias
builtin: alias: restricted name
2d='set -f;_2d'
autoload='typeset -fu'
command='command '
fc=hist
float='typeset -lE'
functions='typeset -f'
hash='alias -t --'
history='hist -l'
integer='typeset -li'
nameref='typeset -n'
nohup='nohup '
r='hist -s'
redirect='command exec'
source='command .'
stop='kill -s STOP'
suspend='kill -s STOP $$'
times='{ { time;} 2>&1;}'
type='whence -v'
Since "alias" and "unalias" are special built-in commands in ksh93,
neither can be used as arguments to "builtin".
The ksh93 script needs to avoid calling "builtin" against alias or unalias.
--
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.