#!/bin/bash
show="ls -al /"
IFS=$'\n'
$show
The result is like bash: ls -al /: No such file or directory.
The shell cannot return expected result.
If I change IFS as $' \n' (notice I added a space), it is ok.
I do not have much knowledge about IFS, could someone explain it?