Re-enable alias redefinition

Fixes #494

Signed-off-by: lledey <lledey@gmail.com>
This commit is contained in:
lledey 2013-01-05 17:03:21 +01:00 committed by Jan Kanis
parent 5b173dafae
commit f0000ea7d2

View file

@ -40,9 +40,6 @@ function alias --description "Legacy function for creating shellscript functions
set prefix command set prefix command
case builtin case builtin
set prefix builtin set prefix builtin
case function
printf ( _ "%s: A function with the name '%s' already exists. Use the 'functions' or 'funced' commands to edit it.") alias "$name"
return 1
end end
eval "function $name; $prefix $body \$argv; end" eval "function $name; $prefix $body \$argv; end"