zsh-workers
 help / color / mirror / code / Atom feed
* zcompile bug? zcompile on a single script setting up a chpwd function
@ 2020-10-07  7:48 Doron Behar
  2020-10-07  8:01 ` Roman Perepelitsa
  0 siblings, 1 reply; 6+ messages in thread
From: Doron Behar @ 2020-10-07  7:48 UTC (permalink / raw)
  To: zsh-workers

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.


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

end of thread, other threads:[~2020-10-07 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07  7:48 zcompile bug? zcompile on a single script setting up a chpwd function Doron Behar
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

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