From 2d2ce4ecc2ee36088df2f4f494e5d335a7359562 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 9 Jul 2003 11:04:01 +0000 Subject: 18836: read with metafied delimiter didn't work. --- Src/builtin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/builtin.c') 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); -- cgit v1.2.3