From a012aedb31b4b959dfd66d6643c43564408a9f00 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sun, 21 Sep 2014 20:00:26 -0700 Subject: Fix incorrect error on `read` with 1-character input When `read` is given a single character of input (including the newline), it was bailing as if it had been given no input. This is incorrect. --- tests/read.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/read.in') diff --git a/tests/read.in b/tests/read.in index 7cf09112..893797a1 100644 --- a/tests/read.in +++ b/tests/read.in @@ -38,6 +38,8 @@ echo 'test' | read -l one two three print_vars one two three echo 'foo bar baz' | read -l one two three print_vars one two three +echo -n 'a' | read -l one +echo "$status $one" echo set -l IFS -- cgit v1.2.3