Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with user function



On Fri, Feb 23, 2024 at 7:36 PM Duke Normandin <dukeofpurl@xxxxxxx> wrote:
>
> On Fri, 23 Feb 2024 19:30:15 +0100
> Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> 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.




Messages sorted by: Reverse Date, Date, Thread, Author