From: Doron Behar <doron.behar@gmail.com>
To: zsh-workers@zsh.org
Subject: zcompile bug? zcompile on a single script setting up a chpwd function
Date: Wed, 7 Oct 2020 10:48:32 +0300 [thread overview]
Message-ID: <20201007074832.xharzoxhtecnjovy@ZENIX> (raw)
Hey all.
I have a zsh script I source in my .zshrc. The script is setting up a
function for `chpwd_functions`. Here it is:
https://github.com/doronbehar/dotfiles/blob/master/.zsh/chpwd/taskwarrior
The function `_chpwd_task_contexts_parser` defined in that file slows
down the shell startup time, and I was looking for a way to improve the
situation. I tried simply zcompiling it, and the `zcompile` command did
generate a .zwc file, but then I get on startup:
[3] 27780
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: no such file or directory: ^G^F^E^D^A
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: permission denied:
[4] 27781 27782
[5] 27783
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: permission denied:
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: permission denied:
[6] 27784
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: permission denied:
[3] exit 127
[4] exit 126 | A
[5] - exit 126 UA0%$A
[6] + exit 126
/home/doron/.zsh/chpwd/taskwarrior.zwc:1: permission denied:
/home/doron/.zsh/chpwd/taskwarrior.zwc:8: permission denied:
/home/doron/.zsh/chpwd/taskwarrior.zwc:17: unmatched "
Have I done something wrong?
Doron.
next reply other threads:[~2020-10-07 7:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-07 7:48 Doron Behar [this message]
2020-10-07 8:01 ` Roman Perepelitsa
2020-10-07 8:09 ` Doron Behar
2020-10-07 8:12 ` Roman Perepelitsa
2020-10-07 8:18 ` Doron Behar
2020-10-07 14:30 ` Bart Schaefer
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201007074832.xharzoxhtecnjovy@ZENIX \
--to=doron.behar@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).