Correct use of .bashrc file
Posted on 2006-06-22
i'm trying to change the default editor used by the cronntab -e command.
The following commmands work in bash command line:
[root] VISUAL=/usr/bin/"mc -e"
[root] export VISUAL
Next i want that root use the mc editor by default, but when i try to add the same lines in the .bashrc file, i get no changes ("crontab -e" starts "vi" instead of "mc").
In a script, must be the sintax slightly different ?