diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-08-28 17:06:27 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-08-28 17:06:27 +0000 |
commit | af071465b1ef324f35741c681529f39b88a95f51 (patch) | |
tree | 066e6aa41be4adba75bfda54055332a120264e16 /Src | |
parent | ca7269e82da4175557b9ed1fc19389f693581b35 (diff) | |
download | zsh-af071465b1ef324f35741c681529f39b88a95f51.tar.gz zsh-af071465b1ef324f35741c681529f39b88a95f51.tar.xz zsh-af071465b1ef324f35741c681529f39b88a95f51.zip |
29731: fix read -AE, test that and read -Ae
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 9b34ef7c0..175607644 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5549,7 +5549,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) *bptr = '\0'; #endif /* dispose of word appropriately */ - if (OPT_ISSET(ops,'e') || OPT_ISSET(ops,'E')) { + if (OPT_ISSET(ops,'e')) { zputs(buf, stdout); putchar('\n'); } @@ -5581,7 +5581,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) : (char **)zalloc((al + 1) * sizeof(char *))); for (pp = p, n = firstnode(readll); n; incnode(n)) { - if (OPT_ISSET(ops,'e') || OPT_ISSET(ops,'E')) { + if (OPT_ISSET(ops,'E')) { zputs((char *) getdata(n), stdout); putchar('\n'); } |