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

Re: possible to disable zsh compatibility mode?



Paul Lew wrote:
>	 execl(shell, "sh", "-is", 0);

That's broken.  I suggest you fix it.  Alternatively, set your SHELL to
be the executable of this program:

	extern char **environ;
	int main(int argc, char **argv)
	{
	    if(argc != 0)
		argv[0] = "zsh";
	    execve("/usr/local/bin/zsh", argv, environ);
	    _exit(1);
	}

-zefram



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