From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 16A1C24F03 for ; Fri, 23 Feb 2024 20:59:54 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1708718394; b=khbPcfNGtIlYaKk8Pa5i1UefpnGTShGFOWDRBzJ6X7jRgHSf9SK/FgGhZ1dh55UBtNWFtdhGfn Nhd65pJCdgmdQRP1WZFwf+FTUJV+U+C1lkSD4UOYwEVTo0w8x2b/BlS25i74dGsPMQuraQ7BWy T55WT0WP2t3ENPB4OXvfdo4sfbjiSBmJuff4DNHnSminKG5ndx+8hcgzCvaLuGxSXsQLkFCrL7 dQ0mwhFGqUrlfQDWFlmR0hb+V88fZCMYa88A+4R2OBBmDgy48zcEYqaY36efrQ/HmiPl1QUZuE HRXbrjdo8cH1U+H7sUB2SBF8cUT4YW3GfBuhX7TrmST+KQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1708718394; bh=Z1pv9tteBZAxXUMfSYIZIKiSNCjZlFLkAma97Od3D1k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=fgX0ZjDFWitmhuSEoaoual7I/x3q3ferQl+/qCDv6ImI0AcrM6iHGVAUC9owiZgyO5mNK+FgtR Ag/ehRv4D4HpebU3IqIy3UASZHZgmIeXYhMvahPS1uDbVhCZIl2U/5dPMMi6s3jKCUwb1hgBXE y9saIZ5yjU50YY7zwhG1+dOn7mCj9j93xbNcpkX4Vnbn/TpxXw8NQib7+q46+3VQrGlijQCKns dcqmHgkopycVn2fIgC7kP2tM+ztAxmcCq+RiugaNdo2qe2bgVNQfI5G40I8zZScUflBI6Guo8n NJUR7FXiiMljsuRWjP68JwhuDWs7ZPHuuBewVfc5zIkGJA==; 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:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=RfxoIrSZ7USL72BE5dddJdpn1t56+s+39bpRq/m3yYc=; b=OnqwzDWCrSXiuBnwwalujjWKdn Lmh9VkYe74svGyJqYiK3FLMygGVpw6XBkOJqolqyDirTuVSstGkujYAxm2IOiYllx3NRQFw8Tpuwb M1CECak23SHWX8IQBD31bITHwXpR/sKwctGlzTaOZ2fM2u/Mr04QApQDdHBizFlRSPQr/3zQGcakh I3S4Qni0H1zhfvF5b3qnUyCkRx9Ro3oxxtyOgLaiNssJnqHmkrwHSMCNeyyZ8wRghVAdTaMG5QHuo ruq3akvXA3az0WHgSUlBws+KY9fJv6sTIDIH9edzRYiygar1ag6FnEtlHFjnfUxh2logzPhPV4oaY fIMrXKYQ==; Received: by zero.zsh.org with local id 1rdbi6-000GEy-8T; Fri, 23 Feb 2024 19:59:54 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:59451) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rdbhc-000FY2-6J; Fri, 23 Feb 2024 19:59:24 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0S9B0R7G4RFT6A01@mta03.eastlink.ca> for zsh-users@zsh.org; Fri, 23 Feb 2024 15:59:23 -0400 (AST) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id dbhar4kPxAimndbharZFv6 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 23 Feb 2024 15:59:23 -0400 X-Authority-Analysis: v=2.4 cv=Q8Rx4J2a c=1 sm=1 tr=0 ts=65d8f91b a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=aR16PxjQAAAA:8 a=A2cGGVnl6-0MNa5fpPEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=vRABFwqoeZ33rJ9rnlIA:9 a=R6v-tDsyGl_CwXBp:21 a=_W_S_7VecoQA:10 a=zbFvvTOBjyH4ze5LlUjX:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeigddufeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeelkefhieetfffhffejvddvkefgueetvdekteejveetheejtdetieehfeeigeeggeenucffohhmrghinhepgidrohhrghenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------BzHXkpYcMOCxWHW05QThF8nW" Message-id: <125f4717-655d-4d63-8d6a-2baccbc071d5@eastlink.ca> Date: Fri, 23 Feb 2024 11:59:22 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Problem with user function Content-language: en-US To: zsh-users@zsh.org References: <20240223104901.35a540adb685459cdfe3c2a5@gmx.com> <0a15d4f3-e222-4100-ad5f-e702dacbad9c@eastlink.ca> From: Ray Andrews In-reply-to: X-Seq: 29709 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: This is a multi-part message in MIME format. --------------BzHXkpYcMOCxWHW05QThF8nW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-02-23 11:40, Roman Perepelitsa wrote: > % alias X='echo howdy'; Y() { X } >> zsh: defining function based on alias `Y' >> zsh: parse error near `()' > Can you reproduce this by running the command within `zsh -f`? Recall > that `zsh -f` gives you a blank state: zsh with no rc files sourced. No error: 0 /aRay 0 % zsh -f b6-12-Deb11b#  alias X='echo howdy'; Y () { X } b6-12-Deb11b# ... nuts, I wonder if I've presumed a 'rule' that isn't a rule at all, just some artifact of my configuration?  I'm in the mood to let sleeping dogs lie, but still ... And then there's this and I probably don't want to know: 0 /aRay 0 % zsh -f b6-12-Deb11b#  alias X='echo howdy'; Y () { X } b6-12-Deb11b# Y (EE) Fatal server error: (EE) Server is already active for display 0     If this server is no longer running, remove /tmp/.X0-lock     and start again. (EE) (EE) Please consult the The X.Org Foundation support      at http://wiki.x.org  for help. (EE) b6-12-Deb11b# ... I don't want to know.  It is not given to morals to understand what X does. --------------BzHXkpYcMOCxWHW05QThF8nW Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-02-23 11:40, Roman Perepelitsa wrote:

% alias X='echo howdy'; Y() { X }
zsh: defining function based on alias `Y'
zsh: parse error near `()'
Can you reproduce this by running the command within `zsh -f`? Recall
that `zsh -f` gives you a blank state: zsh with no rc files sourced.
No error:

0 /aRay 0 % zsh -f
b6-12-Deb11b#  alias X='echo howdy'; Y () { X }
b6-12-Deb11b#

... nuts, I wonder if I've presumed a 'rule' that isn't a rule at all, just some artifact of my configuration?  I'm in the mood to let sleeping dogs lie, but still ...
 
And then there's this and I probably don't want to know:

0 /aRay 0 % zsh -f
b6-12-Deb11b#  alias X='echo howdy'; Y () { X }
b6-12-Deb11b# Y
(EE)
Fatal server error:
(EE) Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
(EE)
b6-12-Deb11b#

... I don't want to know.  It is not given to morals to understand what X does. 


--------------BzHXkpYcMOCxWHW05QThF8nW--