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

Re: Certain unicode in hostname breaks with zsh 4.3.17



On Mar 11, 10:28pm, Mikael Magnusson wrote:
}
} 0x308C0x306B0x306A% echo $HOST
} zsh: no matches found: \M-c\M-^B|0x306B0x306A

Hm.

    hostnam = (char *)zalloc(256);
    gethostname(hostnam, 256);
    setsparam("HOST", ztrdup(hostnam));
    zfree(hostnam, 256);

Apparently that ztrdup(hostnam) should be a metafy(hostnam, -1, META_DUP).

Should that get done with LOGNAME, MACHTYPE, OSTYPE, and VENDOR as well?

None of that explains the OP's crash, though.  The above code excerpt has
not changed in at least a dozen years, and he says 4.3.15 did not show a
problem.



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