zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Eric Smith <es@fruitcom.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Make a function name an alias for another function
Date: Sat, 4 Sep 2021 18:24:29 +0200	[thread overview]
Message-ID: <CAN=4vMq79EqOg2yb981O8STqrNzJrqnbtOWLZTKK9k2HmGo4VQ@mail.gmail.com> (raw)
In-Reply-To: <20210904162144.mwx5h6pj3rp33lgf@trustfood.org>

On Sat, Sep 4, 2021 at 6:22 PM Eric Smith <es@fruitcom.com> 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.


  reply	other threads:[~2021-09-04 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-04 16:21 Eric Smith
2021-09-04 16:24 ` Roman Perepelitsa [this message]
2021-09-05  5:00   ` Make a function name an alias for another function [SOLVED] Eric Smith
2021-09-05 19:01     ` Bart Schaefer
2021-09-04 16:42 Make a function name an alias for another function Eric Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN=4vMq79EqOg2yb981O8STqrNzJrqnbtOWLZTKK9k2HmGo4VQ@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=es@fruitcom.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).