During var assignment, var doesn't have to be put inside "", to be protected from IFS.
However, inside of a function, on line 'local mf_var=$...', IFS does kicks in!
Pls, don't reply before testing code.
However, inside of a function, on line 'local mf_var=$...', IFS does kicks in!
Code:
#!/bin/sh
cust_data=32
IFS=2
my_fun ()
{
local mf_var=$cust_data
echo "Var defined in function's local: '$mf_var'"
other_var=$cust_data
echo "Var defined regulary: '$other_var'"
}
my_fun