diff options
author | Kevin Ballard <kevin@sb.org> | 2014-08-28 18:27:23 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-08-29 12:48:45 -0700 |
commit | 7fce9e2411b9e63d949ad519f1b6a36744d3df4c (patch) | |
tree | 42db765cdece36a63a7f699debfc50dd8ebc059c /tests/read.out | |
parent | cc52a59e1ac7155123a314067cc8ad9f3affe491 (diff) |
Trim trailing newline on cmdsubst when IFS=''
When $IFS is empty, command substitution no longer splits on newlines.
However we still want to trim off a single trailing newline, as most
commands will emit a trailing newline and it makes it harder to work
with their output.
Diffstat (limited to 'tests/read.out')
-rw-r--r-- | tests/read.out | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/read.out b/tests/read.out index 6d90fc0e..1098045d 100644 --- a/tests/read.out +++ b/tests/read.out @@ -1,6 +1,15 @@ 2 2 1 +[one +two] +1 +[one +two] +1 +[one +two +] 1 'hello' 1 'there' 1 'hello there' |