53671: hist: untokenise input to :A and :P

This commit is contained in:
dana
2025-05-23 04:20:06 -05:00
parent a324ce344b
commit f90dbf3674
3 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
2025-11-16 dana <dana@dana.is>
* 53671: Src/hist.c, Test/D02glob.ztst: hist: untokenise input
to :A and :P
* 53578 (tweaked): Src/Zle/computil.c, Src/builtin.c,
Src/exec.c: silence gcc warnings

View File

@@ -1999,6 +1999,7 @@ chrealpath(char **junkptr, char mode, int use_heap)
if (**junkptr != '/')
return 0;
untokenize(*junkptr);
unmetafy(*junkptr, NULL);
lastpos = strend(*junkptr);

View File

@@ -707,6 +707,10 @@
0:modifier ':P' with path too long
>16001
print -r ${${:-/a-b=c}:P}
0:modifier ':P' with tokenised input
>/a-b=c
foo=a
value="ac"
print ${value//[${foo}b-z]/x}