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

Re: Bug in bash

Hi Bruce!

On Fri, 28 Sep 2001, Bruce Jackson wrote:

> If I do the following:  echo "bob\n" the output is:
> bob\n
> I tried this on HP-UX and Solaris and the output is:
> bob
> The newline is added.  None of the Backslash escape sequence work (ie \a 
> \b \t etc).  It works fine with pdksh and csh.  I am not sure where the 
> bug is coming from.

If you use the -e switch to echo it will work as you excpet it:

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


 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :    By professionals,
                           | `. `'      for professionals
 http://www.palfrader.org/ |   `-    http://www.debian.org/

Reply to: