mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-06 11:21:22 +02:00
53209 + tests: do not unmetafy via string pointers into global parameter table
This commit is contained in:
parent
ac1fd06d7c
commit
f282ff5792
3 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2024-11-05 Bart Schaefer <schaefer@toltec-ubuntu>
|
||||
|
||||
* 53209 + comments + test: Src/params.c, Test/D04parameter.ztst:
|
||||
do not unmetafy via string pointers into global parameter table
|
||||
|
||||
2024-10-16 Bart Schaefer <schaefer@toltec-ubuntu>
|
||||
|
||||
* 53146: Src/exec.c: trace flags cannot be copied from an
|
||||
|
|
|
@ -3064,8 +3064,9 @@ getsparam(char *s)
|
|||
mod_export char *
|
||||
getsparam_u(char *s)
|
||||
{
|
||||
/* getsparam() returns pointer into global params table, so ... */
|
||||
if ((s = getsparam(s)))
|
||||
return unmetafy(s, NULL);
|
||||
return unmeta(s); /* returns static pointer to copy */
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
@ -2834,3 +2834,11 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
|
|||
fi
|
||||
1:${(#X)...}: array of out-of-range characters
|
||||
?(eval):4: character not in range
|
||||
|
||||
(
|
||||
export ZDOTDIR=${ echo $PWD/'\0360\0237\0224\0256' }
|
||||
$ZTST_testdir/../Src/zsh -c 'echo $ZDOTDIR'
|
||||
)
|
||||
0:regression for workers/53179 unicode ZDOTDIR
|
||||
F:output ignorable as long as not an error
|
||||
*>*
|
||||
|
|
Loading…
Reference in a new issue