From 973dd6ffbdc189f22b634de0d684e92a9c160c9d Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sun, 13 Jul 2014 22:36:26 -0700 Subject: read: Support arrays, character splitting Enhance the `read` builtin to support creating an array with the --array flag. With --array, only a single variable name is allowed and the entire input is tokenized and placed into that variable as an array. Also add custom behavior if IFS is empty or unset. In that event, split the input on every character, instead of the previous behavior of doing no splitting at all. --- tests/read.status | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/read.status (limited to 'tests/read.status') diff --git a/tests/read.status b/tests/read.status new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/tests/read.status @@ -0,0 +1 @@ +0 -- cgit v1.2.3