1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

The parsing of \c in $foo[(pws:\c:)1] should treat \c as an unknown

escape (resulting in a literal "c"), not remove the sequence (from
a patch by Thorsten Dahlheimer).
This commit is contained in:
Wayne Davison 2005-07-24 05:37:23 +00:00
parent 6e80eb1a4c
commit 03531ff379

@ -1002,7 +1002,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w)
goto flagerr;
sav = *t;
*t = '\0';
sep = escapes ? getkeystring(s + 1, &waste, 1, &waste) :
sep = escapes ? getkeystring(s + 1, &waste, 3, NULL) :
dupstring(s + 1);
*t = sav;
s = t;