Peter da Silva writes:
> Unfortunately there doesn't seem to be a way to rename functions in
> bash.

I beg to differ.

  function rename_function {
      local old=$1 new=$2
      eval "$(declare -f $old | sed "1s/^$old/$new/")"
      unset -f $old
  }

-- 
Aaron Crane

Reply via email to