Re: subshell (ctrl-o) not working properly



Pavel Tsekov wrote:
On Mon, 27 Feb 2006, Tomasz Chmielewski wrote:

Pavel Tsekov wrote:
On Fri, 24 Feb 2006, Tomasz Chmielewski wrote:

I just cross-compiled mc for a Linux/mipsel/uClibc target.

Everything runs fine, except the subshell (ctrl-o).
You should run MC under a debugger then. Start tracing at init_subshell().
Let us know about the results .

P.S. Stracing might prove usefull too.
I made a strace available at http://wpkg.org/mc.strace.gz

It's about 4 kB compressed, 80 kB when uncompressed.

The strace indicatest that subshell support is either not enabled at all
or that for some reason subshell support has been disabled at runtime...
There are several possible reasons that may lead to subshell support being
disabled at runtime - the most plausible one being MC is not able to
detect what kind of shell you are running. MC supports bash, zsh and tcsh.
It tries to look for the absolute path to the user's shell in the SHELL
environment variable and then in its password database entry.


It is compiled in:

# mc -V
GNU Midnight Commander 4.6.1
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using included S-Lang library with terminfo database
With support for background operations
With mouse support on xterm


# echo $SHELL
/bin/bash

# ls -l /bin/bash
-rwxr-xr-x    1 root     root       890007 Feb 16 16:51 /bin/bash


# cat /etc/passwd|grep root
root:encrypted_password:0:0:root:/root:/bin/bash

(this system has no /etc/shadow)

# /bin/bash --version
GNU bash, version 3.1.0(1)-release (mipsel-unknown-linux-gnu)


So everything should be fine?


--
Tomasz Chmielewski
WPKG - http://wpkg.org
Software deployment with Samba



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