Created SC2141 (markdown)

koalaman
2014-05-10 15:42:36 -07:00
parent fba52fef9c
commit 3e99be5350

17
SC2141.md Normal file

@@ -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.