added a link to bash "internal read" documentation with example

hrvoj3e
2018-12-01 22:12:01 +01:00
parent dbf1bd18f1
commit 5535c6f5e9

@@ -20,8 +20,10 @@ By default, `read` will interpret backslashes before spaces and line feeds, and
Normally you just want to read data, which is what `read -r` does. You should always use `-r` unless you have a good reason not to. Normally you just want to read data, which is what `read -r` does. You should always use `-r` unless you have a good reason not to.
Note that `read -r` will still strip leading and trailing spaces. `IFS="" read -r` prevents this. Note that [`read -r`](https://www.tldp.org/LDP/abs/html/internal.html#READR) will still strip leading and trailing spaces. `IFS="" read -r` prevents this.
### Exceptions: ### Exceptions:
If you want backslashes to affect field splitting and line terminators instead of being read, you can disable this message with a [[directive]]. If you want backslashes to affect field splitting and line terminators instead of being read, you can disable this message with a [[directive]].
[1] https://www.tldp.org/LDP/abs/html/internal.html#READR