mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Merge pull request #1 from JohnoKing/fix-builtin-delete
`builtin -d` should not delete special builtins
This commit is contained in:
commit
e500479ede
3 changed files with 12 additions and 0 deletions
|
@ -686,5 +686,11 @@ PATH=$tmp:$PATH $SHELL <<-\EOF || err_exit "'whence' gets wrong path on init"
|
|||
[[ -x $wc ]]
|
||||
EOF
|
||||
|
||||
# ======
|
||||
# `builtin -d` should not delete special builtins
|
||||
(builtin -d export 2> /dev/null
|
||||
PATH=/dev/null
|
||||
whence -q export) || err_exit '`builtin -d` deletes special builtins'
|
||||
|
||||
# ======
|
||||
exit $((Errors<125?Errors:125))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue