From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23734-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DKIM_ADSP_ALL,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 37decef0 for ; Sun, 28 Oct 2018 04:38:55 +0000 (UTC) Received: (qmail 14654 invoked by alias); 28 Oct 2018 04:38:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23734 Received: (qmail 4104 invoked by uid 1010); 28 Oct 2018 04:38:39 -0000 X-Qmail-Scanner-Diagnostics: from mx.spodhuis.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(94.142.241.89):SA:0(-4.3/5.0):. Processed in 1.90027 secs); 28 Oct 2018 04:38:39 -0000 X-Envelope-From: zsh-workers+phil.pennock@spodhuis.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201808; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+3VvYtMOfVuOJxL5xxJAVn12KPIJ6Nit1i0kya5OZVI=; b=e3EVsx9svFH+Q/NVdg2a64gdbz N2AwZJdgAkrEihBgLpaW7x+floCZyIGKHd5vdhk2xibJwpXwcspXPIIJy8L6LVUWrbOcBcWW3v2WD +q7KfeNbYCvv0h/Du/YT+80yVIiDwkL3IJO6MOnFmfVJ12i4MZ5x/wGeGDQgW9glq8iIgMPmbOmST judB0TDqfEzDl3XpOEEms+aY2jigC/GiirUKMBrABrZyJFtEIgwZEbMT5E3KnkRO2LiSJ9hbE16Ck CU/2t0laZ3CrNeQUCDDP+BBNVEhc1udjEstQcN3pHrzoCwlDHdJjFzBKC2OBGstQWxncnJHPoEety 1zNg5JRQ==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201808e2; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+3VvYtMOfVuOJxL5xxJAVn12KPIJ6Nit1i0kya5OZVI=; b=13lk774nWOqx7p0YeACL0dTx3 Kc5hXlEcLGK3Yg/G6m25GUmeoOI4OO+FzEMa1uaSYT/+1W6NPbR75DNWT6oCA==; Date: Sun, 28 Oct 2018 00:20:42 -0400 From: Phil Pennock To: Julien Nicoulaud Cc: Mailing-list zsh-users Subject: Re: Completion issue when zsh is not the default shell Message-ID: <20181028042041.GA21249@osmium.pennocktech.home.arpa> References: <20181026145522eucas1p245580c8ddf13dca70b5eae45af9a0205~hMFzZ7wLw1740617406eucas1p2G@eucas1p2.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc On 2018-10-26 at 20:49 +0200, Julien Nicoulaud wrote: > suspect this is related to bytecode compilation, I have this snippet at the > end of my zshrc: > autoload -U zrecompile && zrecompile -p $MAIN_USER_HOME/.{zcompdump,zshrc} > &>/dev/null My understanding is that << zrecompile -p FOO >> passes FOO through as arguments to zcompile, so you're invoking: zcompile $MAIN_USER_HOME/.zcompdump $MAIN_USER_HOME/.zshrc which is the "zcompile file [ name ... ]" form, so you're compiling .zshrc into the file .zcompdump (instead of .zshrc.zwc). I think that just removing the "-p" should work. (But I've not tried to reproduce your breakage). What happens if fpath is broken and zrecompile can't be autoloaded? What if you fixed such a breakage in .zshrc, but you're not recompiling and the old fpath is still being used from the binary file, even while the source files are correct? This should be "zsh -e" safe, while still giving you more clues what's failing if things fail: if ! autoload -U zrecompile ; then print -u2 ".zshrc: warning: failed to autoload zrecompile, is fpath okay?' else zrecompile $MAIN_USER_HOME/.{zcompdump,zshrc} || ev=$? if (( ev )); then print -u2 ".zshrc: warning: zrecompile failed, exiting $ev" fi fi