Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] tcsh and less
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Thu Feb 10, 2005 5:44 pm    Post subject: [SOLVED] tcsh and less Reply with quote

I have just switched to tcsh from bash.

Heres the problem.

In bash, less works as usual.

.tcshrc
Code:
alias ls        'ls -lF'
alias scr       'source ~/.tcshrc;rehash'
alias w         'w|sort|more'
alias who       'who|sort|more'
echo "----------------------------"
echo "-   Welcome $USER   -"
echo "-           to             -"
echo "-       Planet Earth       -"
echo "-  May I take your order?  -"
echo "----------------------------"


at tcsh prompt
Code:

/home/hotplainrice> less level3-.xhtml


















----------------------------
-   Welcome hotplainrice   -
-           to             -
-       Planet Earth       -
-  May I take your order?  -
----------------------------
level3-.xhtml (END)


WTF? :) Thanks guys


Last edited by hotplainrice on Wed Feb 16, 2005 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Fri Feb 11, 2005 1:53 am    Post subject: Reply with quote

Is the variable LESS and/or LINES set differently between the shells maybe? I'm a tcsh user too :D
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Sun Feb 13, 2005 4:55 pm    Post subject: Reply with quote

PAGER=/usr/bin/less
LESS=-R
LESSOPEN=|lesspipe.sh %s

no difference in these env variables in both bash and tcsh.. :(
Back to top
View user's profile Send private message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Wed Feb 16, 2005 8:29 am    Post subject: Reply with quote

i just got rid off those echo commands and it worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum