Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zcompile bug? zcompile on a single script setting up a chpwd function



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.




Messages sorted by: Reverse Date, Date, Thread, Author