On Thu, May 03, 2001 at 04:36:43PM +0300, Shaul Karl wrote: [...] > [16:24:46 tmp]$ bash -c 'echo x-${IFS}-x' > x- -x > > Ah, something might be wrong with the above tests:
Right. The invoked shell will expand ${IFS} to a string that happens to be whitespace, then parse the line as an "echo" command with arguments "x-" and "-x", and invoke echo accordingly. bash -c 'echo "x-${IFS}-x"' will do what you expect. Richard Braakman