Re: inputrc parsing regression?

2006-01-18 Thread Tim Waugh
On Tue, Jan 17, 2006 at 05:08:35PM -0500, Chet Ramey wrote:

 Before bash-3.1/readline-5.1, key binding did not honor the setting of
 convert-meta.  The current version treats a key binding exactly the way
 readline will when reading a key sequence and dispatching on it,
 converting to eight-bit characters as necessary depending on the value
 of convert-meta.
 
 Ironically, you were the one who filed the original bug report that
 prompted this change. ;-)

Heh :-)

Does this mean that you can't just use the key sequences that 'bind
-p' displays for rebinding in inputrc?

For this particular case I guess '\e[A'/'\e[B' is what I need.

Tim.
*/


pgpUVW7RGVWWw.pgp
Description: PGP signature
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


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

2006-01-18 Thread Mike Frysinger
On Wednesday 18 January 2006 18:34, Jeff Chua wrote:
 GNU bash, version 3.1.5(1)-release

 sh -c echo -n ok returns -n ok.

works correctly for me:
[EMAIL PROTECTED] 0 ~ $ sh -c echo -n ok 
[EMAIL PROTECTED] 0 ~ $ 
-mike


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


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

2006-01-18 Thread Chet Ramey
Jeff Chua wrote:
 
 GNU bash, version 3.1.5(1)-release
 
 sh -c echo -n ok returns -n ok.
 
 This breaks a lot of scripts ... startup scripts in /etc/rc.d and many
 packages like glibc make check that use sh instead of bash with
 -n option.
 
 How can I make sh -c echo -n ok returns ok instead -n ok?
 
 I've tried compiling with --disable-strict-posix-default but that
 doesn't work.

It doesn't behave that way by default:

z3.local(1)$ ./sh --version
GNU bash, version 3.1.5(2)-release (powerpc-apple-darwin8.3.0)
Copyright (C) 2005 Free Software Foundation, Inc.
z3.local(1)$ ./sh -c 'echo -n ok'
okz3.local(1)$

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.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


[bash 3.1.5] sh -c echo -n ok broken

2006-01-18 Thread Jeff Chua


GNU bash, version 3.1.5(1)-release

sh -c echo -n ok returns -n ok.

This breaks a lot of scripts ... startup scripts in /etc/rc.d and many 
packages like glibc make check that use sh instead of bash with -n 
option.


How can I make sh -c echo -n ok returns ok instead -n ok?

I've tried compiling with --disable-strict-posix-default but that doesn't 
work.



Thanks,
Jeff


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


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

2006-01-18 Thread Jeff Chua

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

Thanks,
Jeff.




___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


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

2006-01-18 Thread Chris F.A. Johnson

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
   ===
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash