Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: local functions




On 2022-12-19 17:00, Bart Schaefer wrote:
The current git head has a new utility function
Completion/Base/Utility/_shadow that can be used to simulate local
function names.  You write

    {
      _shadow myfunc
      function myfunc {
        # Do your new thing
      }
      # call myfunc as needed
    } always {
      _unshadow myfunc
    }

Cool.






Messages sorted by: Reverse Date, Date, Thread, Author