No ls colors in jail shell, and word completion bug

Status
Not open for further replies.

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Hi,

When i log into the Jail shell (jexec 1 /bin/csh), and then i use ls command, everything is white on black, although there is the ENV variable LSCOLORS=ExGxFxdxCxegedabagExEx loaded.

And when i start typing a command name, and use TAB for completion, it works strangely : it won't complete some commands at all, will complete some but with at least 3 char typed, and when i use TAB on paths it will complete the names but won't show me sub dirs when completing a dir.

Do you have the same problem? Is it a bug?
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
Same thing happens when using PUTTY. As a regular user or as root I get the colors. Once I login to the Jail the colors are gone. Do not remember if this was happening under BETA3 or not.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
No, it is not a bug, why would it be a bug? you're using csh without a proper .cshrc.

If you like easiness install bash or write your own .cshrc
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
I was wondering if it was a bug because the LSCOLORS variable and the .cshrc in the jail are the same than in FreeNAS.

Here it is :

Code:
# $FreeBSD: releng/8.2/etc/root/dot.cshrc 170088 2007-05-29 06:37:58Z dougb $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#

alias h         history 25
alias j         jobs -l
alias la        ls -a
alias lf        ls -FA
alias ll        ls -lA

# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)

setenv  EDITOR  vi
setenv  PAGER   more
setenv  BLOCKSIZE       K

if ($?prompt) then
        # An interactive shell -- set some stuff up
        set prompt = "`/bin/hostname -s`# "
        set filec
        set history = 100
        set savehist = 100
        set mail = (/var/mail/$USER)
        if ( $?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif



Do you think about something else that could make colors disappear and TAB acting wierd?
 
Status
Not open for further replies.
Top