aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/read.status
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-13 22:36:26 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-07-14 00:46:38 -0700
commit973dd6ffbdc189f22b634de0d684e92a9c160c9d (patch)
tree242487f472926817ac2b805fad0f68b169aee76e /tests/read.status
parent72e8489d50d749c86d5b57609bb0c4d83a03b41a (diff)
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.
Diffstat (limited to 'tests/read.status')
-rw-r--r--tests/read.status1
1 files changed, 1 insertions, 0 deletions
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