'read' does not trim initial whitespace
When 'read' is used with a single argument, initial IFS whitespace is not removed from the input as it should be.
read input <<EOF $(printf ' hi \n') EOF printf 'x%sx\n' "$input"
Actual output:
x hix
Expected output (given default IFS):
xhix
FYI, I wrote this bug report; I forgot to log in, sorry about that.
Fixed in r3325
Thank you for the bug report!
When 'read' is used with a single argument, initial IFS whitespace is not removed from the input as it should be.
Actual output:
Expected output (given default IFS):