-----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.)

Of course, using explicit /bin/ls in the script also avoids a path search,
any small speedup helps a slow device.

Helge Hafting 

_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to