3 ms·
There's an actual difference in behavior between`read name` and `read`: one strips leading and trailing whitespace, the other does not. I know it because I onc
by mar77i 7y ago
There's an actual difference in behavior between`read name` and `read`: one strips leading and trailing whitespace, the other does not.
I know it because I once needed to strip whitespace and only found out through IRC; the difference is only somewhat hinted at in the manual.
- teddyh 7y agoIn the case where you want to preserve whitespace, you probably want to do this, then: read -r foo="$REPLY"