summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-07-24 05:37:23 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-07-24 05:37:23 +0000
commit03531ff379bd888990d4ac1ac9466c345c620706 (patch)
tree3aa41580c090307c3ff8e176d5ffdc981a99d3ba
parent6e80eb1a4c0cc11b322263c07843a93b854e303c (diff)
downloadzsh-03531ff379bd888990d4ac1ac9466c345c620706.tar.gz
zsh-03531ff379bd888990d4ac1ac9466c345c620706.zip
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).
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index 354d8d941..2bcfb0890 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -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;