[Top][All Lists]

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

Re: [bash 3.1.5] sh -c "echo -n ok" broken

From: Chris F.A. Johnson
Subject: Re: [bash 3.1.5] sh -c "echo -n ok" broken
Date: Thu, 19 Jan 2006 01:30:09 -0500 (EST)

On Thu, 19 Jan 2006, Jeff Chua wrote:

On Wed, 18 Jan 2006, Chet Ramey wrote:

Somehow you've enabled the xpg_echo option, either by configuring
with --enable-xpg-echo-default or running `shopt -s xpg_echo'
somewhere.  I suspect the former.

Yes, I did "--enable-xpg-echo-default" as I need echo "ok\c" to work.

The older bash-3.00.15(3) works with "--enable-xpg-echo-default".

So, it is possible to have both the following working in "sh" and "bash"

        echo -n "ok"
        echo "ok\c"

    printf "%s" "ok"

   Chris F.A. Johnson                      <http://cfaj.freeshell.org>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]