zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Duke Normandin <dukeofpurl@gmx.com>
Cc: zsh-users@zsh.org
Subject: Re: Problem with user function
Date: Fri, 23 Feb 2024 19:52:26 +0100	[thread overview]
Message-ID: <CAN=4vMpnR3mGiip-grqKpR0kAFFMSwHVZGpSJ+KZ=X9DrrXO-Q@mail.gmail.com> (raw)
In-Reply-To: <20240223113550.3e60e168b4bbbed3e3104c7d@gmx.com>

On Fri, Feb 23, 2024 at 7:36 PM Duke Normandin <dukeofpurl@gmx.com> wrote:
>
> On Fri, 23 Feb 2024 19:30:15 +0100
> Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:
>>
> > I don't see anything wrong with this code. The error you've got
> > happens when you do this:
> >
> >     alias ls='ls -A'
> >     ls() { whatever; }
>
> No! It happens when I launch a terminal and my .zshrc file is read.

Let me rephrase that: you'll get the same error by running *those* commands.

> > Does your .zshrc attempt to define a function called "ls" on line
> > 92? What does that line look like?
>
> It looks like what I included in my original message. See above in
> the quotes!

What is the output of the following command?

zsh -ic 'print -r -- ${"${(f)$(<${ZDOTDIR:-$HOME}/.zshrc)}"[92]}'

Roman.


  parent reply	other threads:[~2024-02-23 18:56 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
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 [this message]
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='CAN=4vMpnR3mGiip-grqKpR0kAFFMSwHVZGpSJ+KZ=X9DrrXO-Q@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=dukeofpurl@gmx.com \
    --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).