View previous topic :: View next topic |
Author |
Message |
hotplainrice Tux's lil' helper
Joined: 25 Apr 2004 Posts: 92
|
Posted: Thu Feb 10, 2005 5:44 pm Post subject: [SOLVED] tcsh and less |
|
|
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 |
|
|
papal_authority Veteran
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Fri Feb 11, 2005 1:53 am Post subject: |
|
|
Is the variable LESS and/or LINES set differently between the shells maybe? I'm a tcsh user too _________________ The free market gave me gonorrhea. |
|
Back to top |
|
|
hotplainrice Tux's lil' helper
Joined: 25 Apr 2004 Posts: 92
|
Posted: Sun Feb 13, 2005 4:55 pm Post subject: |
|
|
PAGER=/usr/bin/less
LESS=-R
LESSOPEN=|lesspipe.sh %s
no difference in these env variables in both bash and tcsh.. |
|
Back to top |
|
|
hotplainrice Tux's lil' helper
Joined: 25 Apr 2004 Posts: 92
|
Posted: Wed Feb 16, 2005 8:29 am Post subject: |
|
|
i just got rid off those echo commands and it worked. |
|
Back to top |
|
|
|