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

Re: Bug in bash



Bruce Jackson <bjackson@pobox.com> wrote:
> 
> If I do the following:  echo "bob\n" the output is: bob\n

You need to pass the `-e' option.  This is well documented in
echo(1)'s man page:

	-e	enable interpretation of the backslash-escaped
		characters listed below

The behavior of echo(1) tends to vary quite a bit from one
operating system to another.  I would suggest that you use
printf(1) if you want more predictable output.

-- 
Doug Porter <dsp@debian.org>



Reply to: