From 5535c6f5e92911df54d8bcbfc79cd86af9e4d754 Mon Sep 17 00:00:00 2001 From: hrvoj3e Date: Sat, 1 Dec 2018 22:12:01 +0100 Subject: [PATCH] added a link to bash "internal read" documentation with example --- SC2162.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SC2162.md b/SC2162.md index d8a1c5a..ee8021a 100644 --- a/SC2162.md +++ b/SC2162.md @@ -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. -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: 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 \ No newline at end of file