From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY,URI_NOVOWEL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19284 invoked from network); 5 Sep 2021 05:01:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2021 05:01:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630818079; b=cQp0/O+TNodrGqNgc9zXBapuDGLSua9JQ+eA+e53VpWv+4L1fZfwEkh4JivAY9X1fVjK1/JvtP 5xGt2pjsAf3/IKKoAbhtM+BOocMYMvM7eJ11kTB+bA0ZJ/nTn9cUg1qUo4y6pOmb0Ivv4/bvnx vtjHUi+gc0xHn1koibDba63FA0sLCaZsevxtDiUxjEn0LdXt92gg/dRQ4kc7HDjTtAf8hhmHjn pDl7A688tCKtwS5EFhYbzUwCh8lBuBVOwojUolEjmtZy4FtiDVXiDOtUp7AbHnHUbUHWcoPCFw kdR+MyxyUoskm6qDS6lMDCBNbqgnhJUFC3PW+EydJY+5Ww==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (humanalyse.com) smtp.remote-ip=18.184.242.35; dmarc=fail header.from=trustfood.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630818079; bh=qLzBUmlrBzd9O03kta/KPaRtKtBGbNdufKWFcanzMQM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature; b=H62moCDuIvjX9/bV87dNdWDz5wvihzDtxVKfuag7iGgUTU1urK9C1cAwVIiQv9z+VJj1LPPduV Eh3LXH3wLNhxHCpRbX08DnlX+KKWoubYLE06hOBLJ6azwQxycWhNKG5UwkUNEcveMH/wcBj8tY 8bcQtkA81rhHXosuilMuA82V6BlG0jXK74wB/TY2qoDEEshgYU1zgVqzvblbBdm2bkds124D0T olZ8iBTOyj/CIP6DVT5y8lzJTuYb9gNDROR07OuMR1RAIpZLCnhPRf4IByjGnEpitNA2cUeN0P Rw/j+6zf14UXSSaAiGvsAK+Jnb1A+RoPCeF/0TKqd9fmyw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZgGAazqSZ9lhebfHKU3uUDjdfayIMMxdBkB6IVR+GLU=; b=fCUl98FkE79Lw9BZqiiXfo/nA5 axonfsviEyjZTypOBAjf5kGfvmKZc5PfQb3EYQtEtZAP8J2CLd6T1NANLx3Clee/4nbSxYKr67W5I xWEsc1ljp5EgMdXev85Ayi1VQVDrVcMSnGx8II/WxdjSsC9iL0xy0h4L/iJKpUTyBGgHEhYRmJhVN v4k8JiQg1Vp2nr9aCtNNhhzbYtO2kS8Lb1mLpqWb2T37VtAoo+ObkECUFsA6eINfmgJ8SjXFT2n3z Tr2QAqcM6vMjz9sm4pKOFmEgE/e5qcQHUZeWyzexDNc4kQJ0MeDJv6xSl/P9YGnteSMBmXSUB7YSM zJjGXAjQ==; Received: from authenticated user by zero.zsh.org with local id 1mMkHO-0008xx-EJ; Sun, 05 Sep 2021 05:01:18 +0000 Authentication-Results: zsh.org; iprev=pass (humanalyse.com) smtp.remote-ip=18.184.242.35; dmarc=fail header.from=trustfood.org; arc=none Received: from humanalyse.com ([18.184.242.35]:33864 helo=trustfood.org) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mMkGb-0008DR-3s; Sun, 05 Sep 2021 05:00:29 +0000 Received: by trustfood.org (Postfix, from userid 1001) id 8C9B8707B; Sun, 5 Sep 2021 07:00:27 +0200 (CEST) Date: Sun, 5 Sep 2021 07:00:27 +0200 From: Eric Smith To: zsh-users@zsh.org Subject: Re: Make a function name an alias for another function [SOLVED] Message-ID: <20210905050027.af6n7g3vkuc3gihe@trustfood.org> References: <20210904162144.mwx5h6pj3rp33lgf@trustfood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Seq: 27088 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Masterful! $ vim .zshrc;source .zshrc $ POST user/using/9 { "message": "Active organization changed" } $ GET org { "id": 9, "name": "oxxxxxxxxxxxxxxonmail.com", } Roman Perepelitsa previously_wrote on Sat-04-Sep 21 6:24PM > On Sat, Sep 4, 2021 at 6:22 PM Eric Smith 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. >