mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
53671: hist: untokenise input to :A and :P
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1999,6 +1999,7 @@ chrealpath(char **junkptr, char mode, int use_heap)
|
||||
if (**junkptr != '/')
|
||||
return 0;
|
||||
|
||||
untokenize(*junkptr);
|
||||
unmetafy(*junkptr, NULL);
|
||||
|
||||
lastpos = strend(*junkptr);
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user