Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in function in function
- X-seq: zsh-workers 50268
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Klaus Ethgen <Klaus@xxxxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Bug in function in function
- Date: Fri, 20 May 2022 19:16:43 +0200
- Archived-at: <https://zsh.org/workers/50268>
- In-reply-to: <YofL+a8Neg86Iwv6@ikki.ethgen.ch>
- List-id: <zsh-workers.zsh.org>
- References: <YoabreuaHY2ZI9YW@ikki.ethgen.ch> <CAH+w=7YfpaYmhrTmt63qoBao7rVotYWRNzctg+mvDJMj-hEywQ@mail.gmail.com> <YofL+a8Neg86Iwv6@ikki.ethgen.ch>
On 5/20/22, Klaus Ethgen <Klaus@xxxxxxxxx> wrote:
> Am Fr den 20. Mai 2022 um 16:37 schrieb Bart Schaefer:
>> On Thu, May 19, 2022 at 12:34 PM Klaus Ethgen <Klaus@xxxxxxxxx> 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".
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author