help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Klaus Ethgen <Klaus@ethgen.ch>
Cc: Bart Schaefer <schaefer@brasslantern.com>,
	Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Bug in function in function
Date: Fri, 20 May 2022 19:16:43 +0200	[thread overview]
Message-ID: <CAHYJk3RnXpq-ebshqr7DWpFN7-UTYhQkV6adyfB8YJe=ec879w@mail.gmail.com> (raw)
In-Reply-To: <YofL+a8Neg86Iwv6@ikki.ethgen.ch>

On 5/20/22, Klaus Ethgen <Klaus@ethgen.ch> 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@ethgen.ch> 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

  reply	other threads:[~2022-05-20 17:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-19 19:34 Klaus Ethgen
2022-05-20 15:37 ` Bart Schaefer
2022-05-20 17:12   ` Klaus Ethgen
2022-05-20 17:16     ` Mikael Magnusson [this message]
2022-05-20 17:25       ` Klaus Ethgen
2022-05-20 17:46         ` Peter Stephenson
2022-05-20 17:47         ` Bart Schaefer
2022-05-20 18:14           ` Klaus Ethgen
2022-05-20 18:36             ` Peter Stephenson

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3RnXpq-ebshqr7DWpFN7-UTYhQkV6adyfB8YJe=ec879w@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=Klaus@ethgen.ch \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    --subject='Re: Bug in function in function' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).