From 3e99be535023e1aeb89de44b388000311ac80456 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 10 May 2014 15:42:36 -0700 Subject: [PATCH] Created SC2141 (markdown) --- SC2141.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SC2141.md 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