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

Re: Make a function name an alias for another function



On Sat, Sep 4, 2021 at 6:22 PM Eric Smith <es@xxxxxxxxxxxx> wrote:
>
> How can I make like
> POST() = GET()
> Then I can call GET() and it will run the same function but return of cause an alternate $0

Like this:

    POST GET DELETE() { cur --silent -X "$0" ... }

Roman.




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