I have been trying FreeBSD 10.3 in Virtualbox to learn the basics. I have been working through the handbook on freebsd.org, as a starting point. I recently saw 11 was available and decided to gve it a try. My question is how much of the handbook is applicable to 11. As an example, I started with changing the editor from vi to ee. The handbook shows this command for the bash shell.
export EDITOR="/usr/local/bin/emacs" (in my case ee)
Maybe I misread it, but it seemed to imply this was also for the sh shell, which I have by default. Anyway, I could not get this to work, so with some research, I discovered a UNIX tutorial which showed this command for sh, bash and ksh.
VISUAL=ee; export VISUAL
EDITOR=ee; export EDITOR
This worked, and ee comes up, for example, when using chsh. I guess what I'm really asking is did I just misunderstand the handbook and that bash command does not apply to sh.
export EDITOR="/usr/local/bin/emacs" (in my case ee)
Maybe I misread it, but it seemed to imply this was also for the sh shell, which I have by default. Anyway, I could not get this to work, so with some research, I discovered a UNIX tutorial which showed this command for sh, bash and ksh.
VISUAL=ee; export VISUAL
EDITOR=ee; export EDITOR
This worked, and ee comes up, for example, when using chsh. I guess what I'm really asking is did I just misunderstand the handbook and that bash command does not apply to sh.