[Linux-bruxelles] ls aurait un blème ? Was:Re: résolu Was:Re: help: environnement en NL sur accompte FR

Aldo info at brlspeak.net
Lun 2 Juin 21:58:42 CEST 2008


On Mon, Jun 02, 2008 at 09:13:59PM +0200, Rémi Laurent wrote:
> * Aldo - 02-06-2008 à 20h51:
> 
> > Yo!
> > 
> > voici un typescript de qqs tests sur le laptop, pour bien montrer ce qui se
> > passe; malgré la bonne locale et conf dans les fichiers indiqués, voici ce
> > que donne un test:
> > 
> > Le script a débuté sur lun 02 jun 2008 20:28:24 CEST
> > 
> > jdl at ubuntu:~$ tail .bashrc
> > ...
> > # added by me:
> > LANG=fr_BE.UTF-8
> > export LANG
> > export TIME_STYLE=+"%b %d %H:%M"
> > 
> > jdl at ubuntu:~$ tail .bash_profile 
> > ...
> > # added by jdl:
> > LANG=fr_BE.UTF-8
> > export LANG
> > export TIME_STYLE=+"%b %d %H:%M"
> > (je précise qu'il n'existe pas de .bash_profile par défaut sous Ubuntu, j'ai
> > donc dû le créer à partir de ~/.profile).
> > 
> > jdl at ubuntu:~$ ls -l
> > total 116
> > drwxr-xr-x   2 jdl jdl  4096 mai 31 22:59 bin
> > -rw-r--r--   1 jdl jdl 32584 mai 31 21:05 blinuxman_penguin.png
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Bureau
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Documents
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Images
> > drwx------   2 jdl jdl  4096 mai 31 19:19 Mail
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Modèles
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Musique
> > drwxr-xr-x 304 jdl jdl 45056 mai 30 19:02 mMyMusic
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Public
> > -rw-------   1 jdl jdl  1892 jun 02 14:19 sent
> > -rw-r--r--   1 jdl jdl     0 jun 02 20:28 typescript
> > drwxr-xr-x   2 jdl jdl  4096 mai 21 16:25 Vidéos
> > 
> > Tout va bien jusque là ...
> > 
> > Je fais maintenant:
> > jdl at ubuntu:~$ ls -l --time-style=locale
> > total 116
> > drwxr-xr-x   2 jdl jdl  4096 2008-05-31 22:59 bin
> > -rw-r--r--   1 jdl jdl 32584 2008-05-31 21:05 blinuxman_penguin.png
> > drwxr-xr-x   2 jdl jdl  4096 2008-05-21 16:25 Bureau
> > drwxr-xr-x   2 jdl jdl  4096 2008-05-21 16:25 Documents
> > drwxr-xr-x   2 jdl jdl  4096 2008-05-21 16:25 Images
> > drwx------   2 jdl jdl  4096 2008-05-31 19:19 Mail
> > 
> > ..... Je pense que c'est clair et peux couper dans le texte .....
> > 
> > Et quant à la locale même:
> > jdl at ubuntu:~$ locale
> > LANG=fr_BE.UTF-8
> > LC_CTYPE="fr_BE.UTF-8"
> > LC_NUMERIC="fr_BE.UTF-8"
> > LC_TIME="fr_BE.UTF-8"
> > LC_COLLATE="fr_BE.UTF-8"
> > LC_MONETARY="fr_BE.UTF-8"
> > LC_MESSAGES="fr_BE.UTF-8"
> > LC_PAPER="fr_BE.UTF-8"
> > LC_NAME="fr_BE.UTF-8"
> > LC_ADDRESS="fr_BE.UTF-8"
> > LC_TELEPHONE="fr_BE.UTF-8"
> > LC_MEASUREMENT="fr_BE.UTF-8"
> > LC_IDENTIFICATION="fr_BE.UTF-8"
> > LC_ALL=
> > 
> > Où est l'erreur ?
> > 
> > Aldo. 
> > 
> 
> et un 
> grep -c ^fr_BE.UTF-8 /etc/locale.gen
> renvoie quoi ?
> 
Il n'y a pas de /etc/locale.gen sous ce système (Hardy donc).

Parcontre une sortie de printenv et la version de coreutils pourrait
peut-être inspirer ?

Le script a débuté sur lun 02 jun 2008 21:45:37 CEST
jdl at ubuntu:~$ printenv
TERM=linux
SHELL=/bin/bash
HUSHLOGIN=FALSE
TIME_STYLE=+%b %d %H:%M
USER=jdl
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
PATH=/home/jdl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
MAIL=/var/mail/jdl
PWD=/home/jdl
LANG=fr_BE.UTF-8
HISTCONTROL=ignoreboth
HOME=/home/jdl
SHLVL=2
LOGNAME=jdl
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/printenv

jdl at ubuntu:~$ dpkg -l |grep coreutil
ii  coreutils                                  6.10-3ubuntu2                       The GNU core utilities

J'ajoute en plus la sortie de .bashrc et .bash_profile, sait-on jamais qu'il
y a un stuud là!

jdl at ubuntu:~$ cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# ... and ignore same sucessive entries.
export HISTCONTROL=ignoreboth

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_colored_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user at host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'

    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

# added by me:
LANG=fr_BE.UTF-8
export LANG
export TIME_STYLE=+"%b %d %H:%M"

jdl at ubuntu:~$ cat .bash_profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# added by jdl:
LANG=fr_BE.UTF-8
export LANG
export TIME_STYLE=+"%b %d %H:%M"

Aldo. 




Plus d'informations sur la liste de diffusion Linux-bruxelles