1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

18836: read with metafied delimiter didn't work.

This commit is contained in:
Peter Stephenson 2003-07-09 11:04:01 +00:00
parent 9deb9a4e96
commit 2d2ce4ecc2
3 changed files with 13 additions and 1 deletions

View file

@ -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);