1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +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

@ -11,6 +11,10 @@
min(), max(), sum(), provided by a new autoloadable function
'zmathfunc'.
2016-02-16 Barton E. Schaefer <schaefer@zsh.org>
* 37988: Src/params.c: $0 becomes read-only under POSIXARGZERO
2016-02-15 Eric Cook <llua@gmx.com>
* 37975: Completion/Unix/Command/_php: allow completion after

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);
}