Ifs suspension kits. Here if the expansion contains any IFS characters, then it split into different 'words' before the command is processed. Feb 15, 2015 · At the beginning of a bash shell script is the following line: IFS=$'\\n' What is the meaning behind this collection of symbols? The following few threads on this site and StackOverflow were helpful for understanding how IFS works: What is IFS in context of for looping? How to loop over the lines of a file Bash, read line by Jun 12, 2015 · Using IFS= LC_ALL=C read -r line works around it there. If you need a single space, you can use ${IFS%??}. History note The read builtin was introduced by the Bourne shell and was already to read words, not lines. Using var=value cmd syntax makes sure IFS / LC_ALL are only set differently for the duration of that cmd command. Feb 15, 2015 · At the beginning of a bash shell script is the following line: IFS=$'\\n' What is the meaning behind this collection of symbols? The following few threads on this site and StackOverflow were helpful for understanding how IFS works: What is IFS in context of for looping? How to loop over the lines of a file Bash, read line by Jun 12, 2015 · Using IFS= LC_ALL=C read -r line works around it there. . Feb 22, 2016 · From this follows: A portable script cannot dependably inherit IFS via the environment. All of these characters are whitespace. More precisely, the reason this works has to do with how word splitting works. rpeapk fems rwkb ofhqc nte mgo jxwwlf trtzx jsiltyl ljtril