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:
parent
ab74c86edb
commit
b7b3ae311d
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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