There is questionable code in .ashrc
export EDITOR
# should be ?
export EDITOR=$EDITOR
Test: "echo $EDITOR" - does not agree with "which editor"
Returning "editor" does not work in all instances, crontab -e, for example.
tc@box:~$ which editor
/usr/local/bin/editor
tc@box:~$ crontab -e
crontab: can't execute 'editor': No such file or directory
tc@box:~$ echo $EDITOR
editor
# No path - so it is not found when crontab call it
Set environmental variable for the terminal session manually as a test:
tc@box:~$ export EDITOR=vi
tc@box:~$ echo $EDITOR
vi
tc@box:~$ export EDITOR=$(which vi)
tc@box:~$ echo $EDITOR
/usr/bin/vi
tc@box:~$ crontab -e
# Both above can opens vi for editing crontab
Perhaps if the startup script had export EDITOR=`which editor`?
That saves one unneeded temporary variable: "editor".
tc@box:~$ export EDITOR=`which editor`
tc@box:~$ echo $EDITOR
/usr/local/bin/editor
#
# More correct alternative? Also works
tc@box:~$ export TERM=$(which editor)
tc@box:~$ echo $EDITOR
/usr/local/bin/editor
After that "crontab -e" will open editor, not vi, nor fail.
Another route is to leave setup options in .ashrc:
# with optional editor in comment
# text-editor=vi
text-editor=editor
export EDITOR=$(which $text-editor)
This also works. Maybe less vague to call the temp var text-editor?
-----------------------------------------------------------------------------------------------------------------
Maybe this belongs in another post... but here we go.
In some other config file we have a similar misconfiguration.
echo $TERM
rxvt
echo $COLORTERM
rxvt
The env. var: is set: COLORTERM='rxvt'
Similar to above, we see the problem.
tc@box:~$ echo $TERM
rxvt
tc@box:~$ echo $COLORTERM
rxvt
tc@box:~$ which term
tc@box:~$ which rxvt
tc@box:~$ rxvt
sh: rxvt: not found
tc@box:~$ which aterm
/usr/local/bin/aterm
EnvVar should be aterm? Currently sets by default to rxvt.
This causes me to get term instances named rxvt from time to time,
though it's usually named Terminal. A trivial error, but it bugs me :-P
This might be a remedy:
tc@box:~$ export TERM=$(which aterm)
# and this?
tc@box:~$ export COLORTERM=$TERM
Musing....
I know the debain term (on antiX) has sytax coloring.
Is that a (sic) real "COLORTERM"?
OK, enough for now. No biggie.
moB (having a whale of a time)
ps Love the development of Core/TC!
Keep up the good work.