elmo:~# cat bash.bug
#!/bin/sh
#
echo ${BASH_VERSION}
TIMESTAMP=`/bin/date +'%D %T'`
OLDIFS=${IFS}
echo ${TIMESTAMP}
IFS=' :'
echo ${TIMESTAMP}
IFS=${OLDIFS}
echo ${TIMESTAMP}
elmo:~# bash.bug
1.14.7(1)
09/22/97 16:47:08
09/22/97 16 47 08
09/22/97 16:47:08
elmo:~#
Why would the IFS value effect the output of the second echo ${TIMESTAMP} statement (missing colons)?
Thanks in advance,
Bill Shirley
webnut@conc.tds.net
P.S. I'm running Linux 2.0.30.