zsh-users
 help / color / mirror / Atom feed
* Autoload with absolute path fails
@ 2020-10-10 18:56 Marlon Richert
  2020-10-10 18:59 ` Marlon Richert
  0 siblings, 1 reply; 3+ messages in thread
From: Marlon Richert @ 2020-10-10 18:56 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Hi, all!

According to the [autoload documentation](
http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#index-autoload),
one should be able to pass it an absolute path:

> If _name_ consists of an absolute path, the function is defined to load
from the file given (searching as usual for dump files in the given
location).

However, I have a user reporting this to fail:
https://github.com/marlonrichert/zsh-edit/issues/1

What could cause this to happen? It works fine for me and we are both on
Zsh 5.8.

Cheers,

—Marlon

[-- Attachment #2: Type: text/html, Size: 887 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autoload with absolute path fails
  2020-10-10 18:56 Autoload with absolute path fails Marlon Richert
@ 2020-10-10 18:59 ` Marlon Richert
  2020-10-10 19:26   ` Marlon Richert
  0 siblings, 1 reply; 3+ messages in thread
From: Marlon Richert @ 2020-10-10 18:59 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Actually, now that I look again, he's using Zinit. The problem might be
there. I'll have to test.

On Sat, 10 Oct 2020 at 21:56, Marlon Richert <marlon.richert@gmail.com>
wrote:

> Hi, all!
>
> According to the [autoload documentation](
> http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#index-autoload),
> one should be able to pass it an absolute path:
>
> > If _name_ consists of an absolute path, the function is defined to load
> from the file given (searching as usual for dump files in the given
> location).
>
> However, I have a user reporting this to fail:
> https://github.com/marlonrichert/zsh-edit/issues/1
>
> What could cause this to happen? It works fine for me and we are both on
> Zsh 5.8.
>
> Cheers,
>
> —Marlon
>
>

[-- Attachment #2: Type: text/html, Size: 1401 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autoload with absolute path fails
  2020-10-10 18:59 ` Marlon Richert
@ 2020-10-10 19:26   ` Marlon Richert
  0 siblings, 0 replies; 3+ messages in thread
From: Marlon Richert @ 2020-10-10 19:26 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

Yep, the problem is in Zinit, rubber ducky. Thanks for listening! ;)

On Sat, 10 Oct 2020 at 21:59, Marlon Richert <marlon.richert@gmail.com>
wrote:

> Actually, now that I look again, he's using Zinit. The problem might be
> there. I'll have to test.
>
> On Sat, 10 Oct 2020 at 21:56, Marlon Richert <marlon.richert@gmail.com>
> wrote:
>
>> Hi, all!
>>
>> According to the [autoload documentation](
>> http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#index-autoload),
>> one should be able to pass it an absolute path:
>>
>> > If _name_ consists of an absolute path, the function is defined to load
>> from the file given (searching as usual for dump files in the given
>> location).
>>
>> However, I have a user reporting this to fail:
>> https://github.com/marlonrichert/zsh-edit/issues/1
>>
>> What could cause this to happen? It works fine for me and we are both on
>> Zsh 5.8.
>>
>> Cheers,
>>
>> —Marlon
>>
>>

[-- Attachment #2: Type: text/html, Size: 1862 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-10 19:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10 18:56 Autoload with absolute path fails Marlon Richert
2020-10-10 18:59 ` Marlon Richert
2020-10-10 19:26   ` Marlon Richert

zsh-users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \
		zsh-users@zsh.org
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git