From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: Problem with user function
Date: Fri, 23 Feb 2024 11:59:22 -0800 [thread overview]
Message-ID: <125f4717-655d-4d63-8d6a-2baccbc071d5@eastlink.ca> (raw)
In-Reply-To: <CAN=4vMrBRocs3ReOJVE0LSu2upqPyZa_D02c0J=CM=Z+zZPQeg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1918 bytes --]
next prev parent reply other threads:[~2024-02-23 19:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 17:49 Duke Normandin
2024-02-23 18:16 ` Ray Andrews
2024-02-23 18:31 ` Roman Perepelitsa
2024-02-23 18:36 ` Bart Schaefer
2024-02-23 19:26 ` Ray Andrews
2024-02-23 19:40 ` Roman Perepelitsa
2024-02-23 19:59 ` Ray Andrews [this message]
2024-02-23 20:05 ` Roman Perepelitsa
2024-02-23 20:27 ` Bart Schaefer
2024-02-23 20:34 ` Bart Schaefer
2024-02-23 20:46 ` Ray Andrews
2024-02-23 18:32 ` Bart Schaefer
2024-02-23 18:52 ` Ray Andrews
2024-02-23 18:30 ` Roman Perepelitsa
2024-02-23 18:35 ` Duke Normandin
2024-02-23 18:50 ` Duke Normandin
2024-02-23 18:52 ` Roman Perepelitsa
2024-02-23 18:56 ` Duke Normandin
2024-02-23 19:00 ` Roman Perepelitsa
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=125f4717-655d-4d63-8d6a-2baccbc071d5@eastlink.ca \
--to=rayandrews@eastlink.ca \
--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).