document updated 14 years ago, on Dec 29, 2009
What a pain in the arse.
- the best way to display the current value of IFS is:
print "$IFS" | od -t x
the most reliable way I've found to restore IFS is:
OLDIFS=$IFS
... (do work) ...
IFS=$OLDIFS
HOWEVER, in KSH, "unset IFS" also works. The problem with that though is that that line breaks things in bash and ash.