Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 01-16-2002, 10:19 AM   #1
LQ Newbie
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Rep: Reputation: 15
$LFS "less" acting funny

After install ($BLFS) glib apm & mc, then updating/installing /etc/issue,
/etc/inputrc & ~/.vimrc the program less started to act funny. Heres what
it is doing. If I do a "ls -l | less" it will show the files but before the file
names there will be a ESC in a grey box and all of the color options for
"ls" is gone.

Has anybody have this happen to them? The only thing I can figure out is
that "less" is broken now. Thanks for any help.
Old 01-17-2002, 08:43 AM   #2
LQ Newbie
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15
I found the answer to my question, or should I say someone on another mail-list was able to give me the answer.

Here is what caused the problem:

ls is set as "ls --color" and when it is piped to 'less', it can not handle the color option without it being set with the -r option on less "less -r".

This is how I fixed it:

I put these in my ~/.bash_profile

alias ls='ls --color'
alias less='less -r'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"for" loop acting strange... bulliver Programming 3 10-23-2005 03:14 AM
A very funny spin on the "Grinch Who Stole Christmas" quietguy47 General 2 12-25-2003 01:02 PM
kind of a funny sound system "problem" Choey Slackware 0 11-09-2003 10:58 PM
Site acting "funny" with certain images/links MasterC LQ Suggestions & Feedback 5 09-28-2003 10:24 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration