From f0688a48d2dea18ba34187e36b4b87d37726c6b2 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 30 Aug 2015 17:24:22 +0000 Subject: sh: Fix read with escaped IFS characters at the end. Characters escaped with a backslash must be treated as if they were not in IFS. This includes stripping trailing IFS characters. --- bin/sh/tests/builtins/Makefile | 1 + bin/sh/tests/builtins/read9.0 | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 bin/sh/tests/builtins/read9.0 (limited to 'bin/sh/tests/builtins') diff --git a/bin/sh/tests/builtins/Makefile b/bin/sh/tests/builtins/Makefile index c1e7b6416e4f..46a0b4159a1a 100644 --- a/bin/sh/tests/builtins/Makefile +++ b/bin/sh/tests/builtins/Makefile @@ -123,6 +123,7 @@ FILES+= read5.0 FILES+= read6.0 FILES+= read7.0 FILES+= read8.0 +FILES+= read9.0 FILES+= return1.0 FILES+= return2.1 FILES+= return3.1 diff --git a/bin/sh/tests/builtins/read9.0 b/bin/sh/tests/builtins/read9.0 new file mode 100644 index 000000000000..080549889839 --- /dev/null +++ b/bin/sh/tests/builtins/read9.0 @@ -0,0 +1,10 @@ +# $FreeBSD$ + +empty='' +read a b c <