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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22384 invoked from network); 20 May 2022 17:25:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 May 2022 17:25:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653067541; b=FWVu6p4DU39LqhyKw6oKHM5ssCV1BAxUKcn1yDAK0dgouGMNxqnzEvNB+8S2WwkQ7wLkV4Bdcr v8J3FngmGSBQ9Jd4vqes6EwtQK4Sv2GcNyo4L9W9SZbLLh5B7wX5Offpzjv6HB1R7UtkaD7YEv 0O0WU7ylwGSbLoox2oavZvnQoWiZfVpVMrOBa4FzlFzchCFaa0XoJ8n4vBcieimjBZRhpWoH9G bzxzwpfzYbqU7MGwJMixay/U8c7nkAlguKSa05zYua4F4LYmvbyXUsyTdFoWi4CCt+cMHTmzoP mcUUVwllZi/tkqW/HFln2E+bbyR17G62qIBUs0ndoxle/w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (tschil.ethgen.ch) smtp.remote-ip=5.9.7.51; dkim=pass header.d=ethgen.ch header.s=mail header.a=rsa-sha256; dmarc=none header.from=ethgen.ch; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653067541; bh=2UiJ8Yk8sr01ZIpE5//BSxj8DQothw5yVLTnbj8ecsA=; 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:Cc:To:From:Date:DKIM-Signature:DKIM-Signature; b=FjhvMYC/baCwcUQUzCx6hapidP1R/XFeWj+FAq+P+ZIOIVG7iZHGbR50lAS28iaR3mQG5fbQRC hmXwGGsSnWauGdO1K2W4qQzDH1IcgaF9ZxHZA3NRGXQrZEoHUNc1XoWpmLGB85oN5tC3uolZtp rLPVJO9K5mMX5wpSbPb3kf/gNwa3oNm/K821phQ/n2d/XnCPw8zkLOdLOfAqv3+r3wW8STGuPj h7+rl6QDNeSsAf4E5dfSgwtlrJ3PzUHbujIUuddXw8go2qT8zNPa4rt1wZ2lxUjcaJzGFwprk6 qQFhTPyk1IBZsH8XQ04hmpG3RyGWmWVT7ze9KUkyMLP3ZQ==; 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:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=UDQMu4Mn+SVFrvJzU6iW2ANV9lWqZoGeZx2jHr0ndCg=; b=e825B5snT/i/XHHeGqzVDMA0I+ a7CfvEwGogX0HlfGx/Gol+V25FDPzHsdyDPep3qQP+/PjDCMTLM5Nv8j0NNZi9TfU/bRuJnfiqH+V HvDXhLUB8tPD28vGliLkLG8WeUX6rVyi+XKZhNj6WlHNelR83roHZP1su1GPVHwkEITUgpNo9Ohrv CVF9Wd00ROs+zIMHY/sO6fahWVXnGOMwPynAf/bC2gEcybxLaG0Qbw1Jzw7+NJuWOFWi/34aN3vTC DD4Vs820+APjI7yiHKbLSmlagFpUUxUA1Ox68rnaWB9jiwEuxyRjvFJAGctU4pd2QoESkkDjuz2uE sWW5NSGA==; Received: from authenticated user by zero.zsh.org with local id 1ns6Ng-00088r-OG; Fri, 20 May 2022 17:25:40 +0000 Authentication-Results: zsh.org; iprev=pass (tschil.ethgen.ch) smtp.remote-ip=5.9.7.51; dkim=pass header.d=ethgen.ch header.s=mail header.a=rsa-sha256; dmarc=none header.from=ethgen.ch; arc=none Received: from tschil.ethgen.ch ([5.9.7.51]:33562) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ns6NM-0007oR-HC; Fri, 20 May 2022 17:25:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ethgen.ch; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UDQMu4Mn+SVFrvJzU6iW2ANV9lWqZoGeZx2jHr0ndCg=; b=kR2v7S8W/PyN7EK2LFvbpdp1Uh S5x9rdHAIFLXqh/9yE5xc2lyF1ia9f0/6LYDIkiproLMp4Qy/PjVuEtBzJvBRM+W6ALFiJhOqeQt0 QWN/z8d12MVxfM6eecRyWgxVAfHeFZLrGNQR/izLc32zujwnvUKUoBFxky1PTtLFaxLbLLLnbFEl8 WSrs5eiNu9JunNRjScI7FYmMdQWeT9TwGvuK5c9vdhAS4oJdU7LtR0Ia+9AeSgh/fdG+MQYkR2Uly UB93VaUtpqPkfghlzQwqCmX48qpl+zjLMs10XE5+W3k11ZHmVB6Wm0BAsYwxI24tM5DR6EBtalM/W c5iNpLVEOHeRhptT7yCL8SYEmf9OBawlIQtfy3m9vHcsnKMKqdCOX5Lk4YGfRdNgPq5tTrhsnr+T1 YJguvnammQVwqpukgWrfxZkp8wEs8RP8IWKl2pUDUsI7iz5J1HoOfOvvQ0nZy5Gh0ibOfJJrD23Qc TSdOHsbBGgOJKDbOskLtR7qCZKDJ7f4PSZCOM7nI60+6fA4TXiepgFLUZfRCh25aUqnOYNHCmApZg Pilfwlb023BgCuuBhvzrqSW4g2Q7bRVanNDcJ8ZenPZMvCY8aqw/uyxdv5nhAsUnc1qEdWfpNs/+l AsBypMGqNkMaa3SizDbpfeCQEjH4Is1G6AUAjTDZ0=; Received: from [192.168.17.4] (helo=ikki.ket) by tschil.ethgen.ch with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ns6NK-0006ae-HC; Fri, 20 May 2022 17:25:18 +0000 Received: from klaus by ikki.ket with local (Exim 4.95) (envelope-from ) id 1ns6NK-00052H-B1; Fri, 20 May 2022 19:25:18 +0200 Date: Fri, 20 May 2022 18:25:18 +0100 From: Klaus Ethgen To: Mikael Magnusson Cc: Bart Schaefer , Zsh hackers list Subject: Re: Bug in function in function Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="weCn3wLDAcTfHqHc" Content-Disposition: inline In-Reply-To: OpenPGP: id=79D0B06F4E20AF1C; url=http://www.ethgen.ch/~klaus/79D0B06F4E20AF1C.txt; preference=signencrypt X-Seq: 50269 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --weCn3wLDAcTfHqHc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Am Fr den 20. Mai 2022 um 18:16 schrieb Mikael Magnusson: > On 5/20/22, Klaus Ethgen wrote: > > Am Fr den 20. Mai 2022 um 16:37 schrieb Bart Schaefer: > >> On Thu, May 19, 2022 at 12:34 PM Klaus Ethgen wrote: > >> > > >> > Now I get an error in the `ls()` line. It is even more strange that I > >> > don't get an error when compiling it as zwc file! > >> > >> What's the error? > > > > /home/klaus/.zsh/zshrc/30_aliases:471: parse error near `()' > > > > This is the line `ls()`. the first function definition (`cd()`) does > > work. And when compiling, both work as expected. > > > > I have an alias `alias ls="LC_COLLATE=POSIX ls $_ls_opts"` before this > > line but that should not interfere the function definition. > > In fact it should, and it does. Change your function definition(s) to > the form "function ls". Putting a `function` in front of `ls()` work. However, I was thinking, `function` (in that context) is deprecated. Regards Klaus -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C --weCn3wLDAcTfHqHc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Charset: ISO-8859-1 iQGzBAABCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAmKHzv4ACgkQpnwKsYAZ 9qzjqAv+I7pXn56jEJmTcAYgWhPbE1kQGBKVIN4ZtJE/QutxpdO+yObUcxNXI1jj V5EvCVZ3iNq0cUja3twaAEjdpfWxRzbbPayZp2IzLlTf7iEPAMb/j8j+66BWCIVv t9yM5ZnhAdLWHJDLpu8nxlp7hlq/B4JqI0nOenisXOYb7sAiDxirphppaW+ZB1QM OdgnspN5w2aTRFiEEbiEiTMLpdwyV7sNQHkDh5z2vzhv9Cn84jVMNeRyrfBdreR5 k4pq7QYXFEoEwe/WC3ChO7UVEOARfs/3FBHOmADMcXYAphCl7bMwGE5PdvdetBf/ gae/iIYwscvv7xLBLX6xZc9i9M0SoU6LL9QOWvEvUqU9ycXgq99TWboeDaZnNJ+4 wEEK62G8eLhenHLxsIl5k8CtDWoS7lx1ehdiA86sYlR6M/F5vcAcdvZAcM0l+0qI BMpolJvWgF8jyTNWZW3vx0fxPgFK88RghOkJIk8DRaJF5nyxmb4vAX58P84j3MWh vehf5W7s =Ecym -----END PGP SIGNATURE----- --weCn3wLDAcTfHqHc--