[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#95430 acknowledged by developer (Re: Bug#95430: ash: word-splitting changes break shell scripts)

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

Reply to: