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

Re: ksh compatibility: initial value of $_



Sorry, there was a serious typo:

> 2023/04/09 22:30、Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx>のメール:

> diff --git a/Src/init.c b/Src/init.c
(snip)
> @@ -893,6 +896,106 @@ init_term(void)
(snip)
> +static char *
> +getmypath(const char *name, const char *cwd)
> +{
> +    char *buf;
> +    int namelen;
> +
> +    if (!name)
> +	return NULL;
> +    if (*name == '-')
> +	++name;
> +    if ((namelen = strlen(name) == 0))

the last line should be

	if ((namelen = strlen(name)) == 0)



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