Leslie Ballentine <[EMAIL PROTECTED]> wrote:
> Using RedHat Linux 7.1, kernel 2.4.9-6, I obtain the following:
>
>     /bin/echo "atime: \c"; ls -dlu findx
> atime: \c
> -rwx--x--x    1 ballenti ballenti      376 Nov 30 10:49 findx
>
>
> Under Solaris, I obtain:
>
>     /bin/echo "atime: \c"; ls -dlu findx
> atime: -rwx--x--x   1 ballenti users        376 Oct 30 12:34 findx
>
> Apparently, the line-continuation character, "\c", is not working under
> Linux.

Thanks for the report, but it's not a bug.
To enable that, you have to use echo's -e option:

  /bin/echo -e "atime: \c"; ls -dlu findx


  $ /bin/echo --help
  Usage: /bin/echo [OPTION]... [STRING]...
  Echo the STRING(s) to standard output.

    -n              do not output the trailing newline
    -e              enable interpretation of the backslash-escaped characters
                      listed below
        --help      display this help and exit (should be alone)
        --version   output version information and exit (should be alone)

  With -e, the following sequences are recognized and interpolated:

    \NNN   the character whose ASCII code is NNN (octal)
    \\     backslash
    \a     alert (BEL)
    \b     backspace
    \c     suppress trailing newline
    \f     form feed
    \n     new line
    \r     carriage return
    \t     horizontal tab
    \v     vertical tab

  Report bugs to <[EMAIL PROTECTED]>.

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to