HomeFreeBSD

SC2162: read without -r will mangle backslashes.

Description

SC2162: read without -r will mangle backslashes.

By default, read will interpret backslashes before spaces and line
feeds, and otherwise strip them. This is rarely expected or desired.

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.

PR: 227109
Submitted by: mat
Sponsored by: Absolight

Details

Provenance
matAuthored on
Parents
rP471991: SC2015: Note that A && B || C is not if-then-else. C may run when A is true.
Branches
Unknown
Tags
Unknown