Comment 10 for bug 48876

Revision history for this message
Matthew Wang (dotwayman) wrote : Re: [Bug 48876] Re: gnome-session fails when "alias ls='ls --color'" in .profile

Sebastien,

My system is built up by the ubuntu 6.06 Live CD (double click install icon
on the desktop), I added the alias to /etc/profile just after first boot.
And I reproduced it easily in another fresh system also. So I think I was
not picking particular session.

"ls --color /etc/X11/Xsession.d" only shows texts with normal color, but
the output is filled with some ansi control chars (use cat -v to prove):

igo: ~ $ /bin/ls --color /etc/X11/Xsession.d | cat -v
^[[0m^[[0m20xorg-common_process-args^[[0m
^[[0m30xorg-common_xresources^[[0m
^[[0m50xorg-common_determine-startup^[[0m
^[[0m55gnome-session_gnomerc^[[0m
^[[0m75dbus_dbus-launch^[[0m
^[[0m90xorg-common_ssh-agent^[[0m
^[[0m99xorg-common_start^[[0m
^[[m

igo: ~ $ md5sum /bin/ls
cf3669f0230ba30c2ddede093bdaa031 /bin/ls

On 8/10/06, Sebastien Bacher <email address hidden> wrote:
>
> Thanks for your work on that. Do you pick a particular session to get
> the issue? Does "ls --color /etc/X11/Xsession.d" uses some color on your
> installation? I'm trying to figure why it's not happening everywhere and
> why it's breaking the login before applying the patch
>
> --
> gnome-session fails when "alias ls='ls --color'" in .profile
> https://launchpad.net/bugs/48876
>