On 19 June 2010 16:33, Helge Hafting <[email protected]> wrote:
>
>
>
> -----Original Message-----
> From: [email protected] on behalf of Daniele Ricci
> Sent: Fri 6/4/2010 7:55 PM
> To: SHR-user
> Subject: [Shr-User] Problems using colored ls command
>
>>Hello,
>>I recently discovered a problem when using the --color switch to ls as an
>> alias.
>>The script /etc/X11/Xsession uses the bare 'ls' command to enumerate
>>session scripts, and that doesn't work because of color escape
>>sequences, I suppose.
>>I've temporarly fixed in my FR changing the command to '/bin/ls' .
>
> Add your aliases to one of the config files that is only read by
> interactive login shells. That way, the noninteractive startup
> scripts won't get the alias and you won't have problems. ('man bash'
> to find the right file.)

It's not easy to find a place for the alises because /etc/X11/Xsession
sources both /etc/profile and, if it exists, $HOME/.profile. I wonder
if this two are really needed.
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to