Dan Langille schrieb:
Martin Simmons wrote:
On Tue, 05 Feb 2008 05:56:21 -0500, Dan Langille said:
Tilman Schmidt wrote:

I get wildly varying results with line editing in bconsole between
different systems. On some systems, I can edit the command on the
screen as expected, with backspace erasing characters from the end as
usual, but when I finally type enter what gets sent as command is
obviously not what I last saw on the screen. On others, hitting
backspace once skips to a new line as if it had deleted the entire
command, so line editing is guesswork at best, and never seems to
result in what I intended. [...]
On a single one of my systems, line editing actually works as expected,
but I don't know why.
[...]
I suspect readline.  Different versions and/or options.

That depends on whether readline is being used.  I think the default is to use
the internal conio instead.

Come up with a test for determining what is being used and let the investigations begin. Will this suffice?

[EMAIL PROTECTED]:~] $ ldd `which bconsole`
/usr/local/sbin/bconsole:
         libreadline.so.6 => /lib/libreadline.so.6 (0x280a2000)
         libhistory.so.6 => /usr/lib/libhistory.so.6 (0x280cf000)
         libncurses.so.6 => /lib/libncurses.so.6 (0x280d6000)
         libpthread.so.2 => /lib/libpthread.so.2 (0x28115000)
         libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2813a000)
         libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28143000)
         libssl.so.4 => /usr/lib/libssl.so.4 (0x28230000)
         libcrypto.so.4 => /lib/libcrypto.so.4 (0x2825e000)
         libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28351000)
         libm.so.4 => /lib/libm.so.4 (0x2841c000)
         libc.so.6 => /lib/libc.so.6 (0x28432000)
[EMAIL PROTECTED]:~] $

This is the machine where line editing works:

[EMAIL PROTECTED]:~> ldd /usr/sbin/bconsole
        linux-gate.so.1 =>  (0xffffe000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7f76000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7f5f000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f5b000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f18000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7dd2000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7ce4000)
        libm.so.6 => /lib/libm.so.6 (0xb7cbe000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cb2000)
        libc.so.6 => /lib/libc.so.6 (0xb7b7f000)
        /lib/ld-linux.so.2 (0xb7fb6000)
        libz.so.1 => /lib/libz.so.1 (0xb7b6c000)
[EMAIL PROTECTED]:~>

This is one of those where hitting backspace clears the displayed line:

[EMAIL PROTECTED]:~> ldd /usr/sbin/bconsole
        linux-gate.so.1 =>  (0xb7f1b000)
        libtermcap.so.2 => /usr/lib/libtermcap.so.2 (0xb7ef7000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7ee0000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7edc000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7e99000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7d53000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c65000)
        libm.so.6 => /lib/libm.so.6 (0xb7c3f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c33000)
        libc.so.6 => /lib/libc.so.6 (0xb7b00000)
        /lib/ld-linux.so.2 (0xb7f1c000)
        libz.so.1 => /lib/libz.so.1 (0xb7aed000)
[EMAIL PROTECTED]:~>


--
Tilman Schmidt
Phoenix Software GmbH                             www.phoenixsoftware.de
53227 Bonn, Germany                            Amtsgericht Bonn HRB 2934

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to