DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

这是服务器的版本。

当我ssh到它,我收到以下问题:

问题1

签完成的行为很奇怪的一点是无法使用:

> cd ~/<press TAB>
-sh: <( compgen -d -- '/home/dmitriid/' ): No such file or directory

> vi ~/.<press TAB>
<( compgen -d -- '/home/dmitriid/.' ): No such file or directory
-sh: <( eval compgen -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|
JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' -- 
$(quote_readline $cur) ): No such file or directory

> nano ~/.<press TAB>
./              .bash_logout    .mc/            .viminfo
../             .bashrc         .mysql_history  
.aptitude/      .erlang.cookie  .profile        
.bash_history   .gitconfig      .ssh/

有没有办法来解决这个问题?

问题2

我用mc相当多的。我经常做的Ctrl+O隐藏板和工作的外壳。在我的情况:

  1. Ctrl+O隐藏板
  2. 任何按键带来的板回来

有没有办法来解决这个问题呢?

谢谢你!

有帮助吗?

解决方案

"确定"。事实证明的解决方案是愚蠢的和简单。关键是没有互动的外壳mc。

答案就在这里: http://www.ibiblio.org/mc/FAQ

6.6当我使用Ctrl-O我没有得到一个子shell.我怎么解决这个问题?

唯一庆典,tcsh会和aix系统管理的各个方面和扩展可用来作为子shell.使用其中的一个 炮弹作为默认的外壳,并且它将被用来作为子shell在GNU 午夜的指挥官。

所以我决定改变shell:

> which bash
/bin/bash
> sudo chsh -s /bin/bash my_user_name
> grep ^my_user_name /etc/password
my_user_name:x:1002:1002::/home/my_user_name:/bin/bash

注意/bin/bash在结束passwd文件。这意味着壳的现已改变。

之后我退出,然后登录回来—瞧,一切正常!

其他提示

我会尝试重新安装的所有庆典包,尤其是砸完成: apt-get install --reinstall bash-completion, 因为它看起来像某些部分的庆典是拧。顺便说一句,我想这个应该去serverfault.com.

当我输入下面关于根,那么它似乎是权限的问题得到解决。看起来像compgen不能阅读的目录,它需要当我登录作为一个经常用户。

sudo su -

"6.6当我使用Ctrl-O我没有得到一个子shell.我怎么解决这个问题?"

使用Ctr+o你应该有壳=/bin/bash和不壳=/bin/sh 增加。更改的出口壳=/bin/bash

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top