From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8689 invoked from network); 10 Oct 2020 19:27:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Oct 2020 19:27:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1602358058; b=Lxcs9uce2P+csj2yhfOYT5lfYvIy1K2gs1OUQTurSiS0DoPgxuKyaWf8TMclVv1HUZOOEQIy4q g6O97DCu86yqZdsnCr7Qf/Gf1voQrIZZt3YbVOECYOjfFLz4CPMatyenmBMYgcMVrfPEEdcbL9 0NEMS+CnvtrzPPk47WYymmGe2jKNH4XtFPye9lKSmrPqAlGc1Z+DTIo7OlTaMNiI+eVB3AiDhj HHGSPOlkoixoQzxl77jXGIqi5q123BlK7nImrZMaHcknTqMiYeeIgeRhRCYWzvwMMKy1CSN93b c04+q7LWH5/xafDbSAMTiwkLOgaEJYp2Yk+eNYbRtzt01A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1602358058; bh=8epGZNwuM8+OMo6lRE7psQAjdKQKjT77/2mUGLY7sxs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=hAk4+LliMt3z9JS3RZV9sWOOKOMXOH2OSx2qqYJq7Dr6/MiyAHTumv2QIP/P0FALrUq7uPZccS Vy8Y3DOhtiIrK8zjWXYCQdyFYxg1PWM3RDALiAfUHtTtDyAvUQQZ4z+Sdq6bEilYpgvjGQ25YZ ljzf/8wDkNSLI/lMIANBIHwfxl1zDmgtvQQP7SsgNgRQnJYVO1K2W5BFGkKgqn20hbGAILIaEL N/FqLRYLB7wGoazzYLPXFvZsLQUR4jcAo5cdS9Kbg2k23Ef+Ce5TKIZfebjqsAVE70Qk3TJfSl Sh8KEs1+cbZCKQdi4OK0GArbkHlXOu9bhXxY2Y8YEibF+w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=8epGZNwuM8+OMo6lRE7psQAjdKQKjT77/2mUGLY7sxs=; b=cHVYgM13+NYs+bbNFj9q9FddUu IJPbHNcl6B+5LPtgoJpStzuzcRJJjJfzLFUd7ZavJsXREG08diwPDJqx1aous7Bfh+p4X6HdYO7IM AUgQdtNNlejPZKK+oKHvMovEHEFNq1nPA2kr0A+E7nv5GRe+0qM00viBI6v3NhRUvblrTEzO1fbrf zXNsqaaM2jQPp+Q7oro8nlFSpb9g9tyCvsi/Jfsh0DudEnhQTSg8C1f/tjJRfjPZ9h7JsOggWx+Ng lQCADutWZf2Kc0OBqQ7Uz5qBsblezkbtiaf6Bli4hkGLyxyNbiorMkV9sAaBcCiczdgR4AjB3Jzdh 5z2sCs+A==; Received: from authenticated user by zero.zsh.org with local id 1kRKWj-0004Oz-5I; Sat, 10 Oct 2020 19:27:33 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oi1-f178.google.com ([209.85.167.178]:37105) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kRKWF-0003Vr-Re; Sat, 10 Oct 2020 19:27:04 +0000 Received: by mail-oi1-f178.google.com with SMTP id t77so14084368oie.4 for ; Sat, 10 Oct 2020 12:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=8epGZNwuM8+OMo6lRE7psQAjdKQKjT77/2mUGLY7sxs=; b=QG1m+72uv3fqMu2nPh5Dj/2aTG+ET9rwdur/w5Kh2N6/Tw0kQo9DqULWxQsinuWHBN 9kpklOZb7ruyjskahf+CRdQ3yW/ldOVYDhx1Kc7K4tI4Jdb0gVLVe+0M0qJ0sImDEEjm dGcmdqdEJVB3Zu5swi2jom7pw3tV4ilJJGMaea6fu+2jqj4fuZJqGDpW+VprOdmvWEat LrvzXu00Hr6IoQtboYmDt1Zwm9mupp3omqN0qlXalTD+1xgd1niiYjxa0paoBdS922Vs sFNo2HMZs8JPIucKcGT/tFqAT/0UgfMa0j3MU9lb6ZQ2SPT+Puk5cd1q4qOsvSgsJhsZ YILA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8epGZNwuM8+OMo6lRE7psQAjdKQKjT77/2mUGLY7sxs=; b=OHTJHT1pZg8Yub1/J/lD42XPin2WGP9XtEtOpxYh8SsxNdk0xyMDcvTf51t19LfnBp wDpHCP+HgNaoUWD7Ghcx7R3l2XrH8ao0hZJ5oXFcYApeMFOUkvdFEMOh/FrgJqFv/pqJ h+LX7oLTKDHoL4RISFMZZWMpiSXAzz3Dh5Ta945rofQknQh4FvWHvrFqsuw2BstJIkmN WF51omEkgYw/l3wtC+1RN4NVqY7wtlX7rNAlqG6iCepPqMqHP8AqxdDjqWWFKycAN/tu kQTEKm3W9aYhl4mvait0zQRUIDMYdGu30APmMJuPN2nJ1F6gRcQfMlxlUYXzeMLoGZar aULQ== X-Gm-Message-State: AOAM532K6XJ6c4HIb0ps6ORjyHUfutAtI4mINj1AAzgtbnSptLOw/2hp TkwvmLc8mCG45rnnVKfnPLWQGHSavnntwDTStS4qfvcG X-Google-Smtp-Source: ABdhPJx23VhOe8aSf1v8Llnh3u8Oh7DWk0jHvFUy5z1qoblJczCRDKCoZHThms66ckuFmNYbvH2ftzJ127w6gwtHpp8= X-Received: by 2002:aca:4d88:: with SMTP id a130mr6465215oib.28.1602358022187; Sat, 10 Oct 2020 12:27:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Sat, 10 Oct 2020 22:26:50 +0300 Message-ID: Subject: Re: Autoload with absolute path fails To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000b7305b05b1560c8c" X-Seq: 26098 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000b7305b05b1560c8c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yep, the problem is in Zinit, rubber ducky. Thanks for listening! ;) On Sat, 10 Oct 2020 at 21:59, Marlon Richert 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 > 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 loa= d >> 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, >> >> =E2=80=94Marlon >> >> --000000000000b7305b05b1560c8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yep, the problem is in Zinit, rubber ducky. Thanks fo= r 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 mig= ht be there. I'll have to test.

On Sat, 10 Oct 2020 at 21:56, Marlon Ric= hert <marl= on.richert@gmail.com> wrote:
Hi, all!

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

=
>=C2=A0If _name_ consists of an absolute path, the function is defi= ned to load from the file given (searching as usual for dump files in the g= iven location).

However, I have a user reporting t= his to fail:=C2=A0https://github.com/marlonrichert/zsh-edit/issues/1<= /a>


<= div>

--000000000000b7305b05b1560c8c--