about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-07-09 11:04:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-07-09 11:04:01 +0000
commit2d2ce4ecc2ee36088df2f4f494e5d335a7359562 (patch)
treeb03647735a3b409af44c1ae95943da15cd8d60c9 /Src/builtin.c
parent9deb9a4e9675040e581034e2227397181264ce0b (diff)
downloadzsh-2d2ce4ecc2ee36088df2f4f494e5d335a7359562.tar.gz
zsh-2d2ce4ecc2ee36088df2f4f494e5d335a7359562.tar.xz
zsh-2d2ce4ecc2ee36088df2f4f494e5d335a7359562.zip
18836: read with metafied delimiter didn't work.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index f8a713152..bdb7c72d8 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4231,7 +4231,8 @@ bin_read(char *name, char **args, Options ops, int func)
 	}
     }
     if (OPT_ISSET(ops,'d')) {
-        delim = *OPT_ARG(ops,'d');
+	char *delimstr = OPT_ARG(ops,'d');
+        delim = (delimstr[0] == Meta) ? delimstr[1] ^ 32 : delimstr[0];
 	if (SHTTY != -1) {
 	    struct ttyinfo ti;
 	    gettyinfo(&ti);