diff --git a/SC2141.md b/SC2141.md new file mode 100644 index 0000000..4a103b9 --- /dev/null +++ b/SC2141.md @@ -0,0 +1,17 @@ +## Did you mean IFS=$'\t' ? + +### Problematic code: + + IFS="\t" + +### Correct code: + + IFS=$'\t' + +### Rationale: + +`IFS="\t"` splits on backslash and the letter "t". `IFS=$'\t'` splits on tab. + +### Contraindications + +It's extremely rare to want to split on the letter "n" or "t", rather than linefeed or tab. \ No newline at end of file