1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

37988: $0 becomes read-only under POSIXARGZERO

This commit is contained in:
Barton E. Schaefer 2016-02-16 18:18:39 -08:00
parent ab74c86edb
commit b7b3ae311d
2 changed files with 7 additions and 1 deletions

View file

@ -4158,7 +4158,9 @@ static void
argzerosetfn(UNUSED(Param pm), char *x)
{
if (x) {
if (!isset(POSIXARGZERO)) {
if (isset(POSIXARGZERO))
zerr("read-only variable: 0");
else {
zsfree(argzero);
argzero = ztrdup(x);
}