From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 1fc13406 for ; Thu, 31 Jan 2019 13:11:39 +0000 (UTC) Received: (qmail 22154 invoked by alias); 31 Jan 2019 13:11:22 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44027 Received: (qmail 18139 invoked by uid 1010); 31 Jan 2019 13:11:22 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.166.42):SA:0(-1.9/5.0):. Processed in 2.498849 secs); 31 Jan 2019 13:11:22 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qGN/wZ98a7bk/7S8nDEi9hyetqg9M9vZ+s/tB07TGDU=; b=2EUQp716saEBhMANlMLD7BrhgbHsDBSHF+BvNlF90qV3FRdr9UBMBHLznfTl4EMmfn 3rpQIqgGkSFEsjyZ4gyBGRDPmSpy6zWeuGF8N8sgSpVOdFOVV3wRZ1VxHtUeE/d63nzk UgotxNripn/sWyCBOB5t8nW/NHV5FLT73YZzlW1dFsmyHRNExUPMnHWQB/JcBIFkFouC E3d9GR1XSDYbo/RMzIfdt41XJQ8CwcnbvxhUZfNsZyl8qVXHksM+LfRhz7sx+Ujha2ks nqGxaTWzrMhStiCvNHaU6DAlY7rIIckeVWBnElWEj5XwlE8M52oUFjRBiG6CetoIVZsD GPng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qGN/wZ98a7bk/7S8nDEi9hyetqg9M9vZ+s/tB07TGDU=; b=JoCvAiUfqW53u8w5XQsYhowWHHAkA91BFvNzccp0MJQiZr0h5XJEBybtEUUcJaYKWG KF03kl16uoVFXc+8Y7KLrrOb3+t73hEVLm0BWwvCuwM5otXWc+Rs8RPt4eihPQuIQKc0 JJ4UQ+Sspydhr6w5G7dFuY4epxhEicI1cukfM3Zsb2Ei9tIXWTQA3ZtmEtIEaqAsnkzm 7L2oiCCbk8ewdP5MgwxSJyK9JawkfHcmWvyGF98RiOSlCSxO/xgGYu+RI3Bm459fAUsz aL/7Zf02QA85xSfhlYg8uPM1Zg2DI3dqNXvHqk1Ya44Qr3sX97ZWJy0Byj+jlu57XYIf H+Tw== X-Gm-Message-State: AJcUukcvPZPyLdMX+v96F8QFFzBjKb7Lcv1Bk8tIy/2+CIJbmpuS1lUq Nb0wDRXIPxOIB2VX6r/GYmMRRg== X-Google-Smtp-Source: ALg8bN4cSz0uqcBcQZZgi2dHeUU689URW+jEkFl8I6xKnpbB/bV8FiSLPkM7W+J7SsS1eSUfshJ8HA== X-Received: by 2002:a6b:6b02:: with SMTP id g2mr19520958ioc.18.1548940277195; Thu, 31 Jan 2019 05:11:17 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: zsh function declaration bug From: dana In-Reply-To: Date: Thu, 31 Jan 2019 07:11:15 -0600 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <730BA7F6-5BE4-419D-838E-457B43F93B90@dana.is> References: To: Mitchell Gildenberg X-Mailer: Apple Mail (2.3445.100.39) On 30 Jan 2019, at 11:46, Mitchell Gildenberg wrote: >=E2=9E=9C mgild $ l(){ echo "hello"} >zsh: defining function based on alias `ls' >zsh: parse error near `()' Presumably you have an alias l=3Dls, which is being expanded because the = l in l() { ... } is considered to be in command position. workers/40300 made = this an error by default, since the expansion behaviour is generally = unexpected If you don't need the l alias, you can just unalias it. Otherwise it = will work with the function key word like you said, or if you put the = definition in a file rather than entering it at the command line. But i'm guessing you = don't actually want an alias and a function with the same name anyway dana