diff options
| author | Peter Stephenson <pws@zsh.org> | 2013-05-21 16:15:29 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2013-05-21 16:15:29 +0100 |
| commit | 17d38259f871d28ce92a36c7fa3dff0f269dee04 (patch) | |
| tree | caa3e74e820e257e5bc387361ccc40fac5564929 | |
| parent | 31417: age function needs protection against file names starting "-" (diff) | |
| parent | upon "read" of a short line, assign all variables passed as arguments. (diff) | |
| download | zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar.gz zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar.bz2 zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar.lz zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar.xz zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.tar.zst zsh-17d38259f871d28ce92a36c7fa3dff0f269dee04.zip | |
Fix merge
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | Src/builtin.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ -2013-05-21 Peter Stephenson <p.stephenson@samsung.com> +2013-05-20 Barton Schaefer <schaefer@zsh.org> - * Stephane: 31417: Functions/Calendar/age: needs -- - to protect againts files starting with -. + * 31416: Src/builtin.c: upon "read" of a short line, assign all + variables passed as arguments. 2013-05-14 Peter Stephenson <p.stephenson@samsung.com> diff --git a/Src/builtin.c b/Src/builtin.c index cd886437b..bc91578b3 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5674,7 +5674,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) zputs(buf, stdout); putchar('\n'); } - if (!OPT_ISSET(ops,'e') && (*buf || first)) { + if (!OPT_ISSET(ops,'e') && (*buf || first || gotnl)) { if (OPT_ISSET(ops,'A')) { addlinknode(readll, buf); al++; |
