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:
parent
ab74c86edb
commit
b7b3ae311d
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue