[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About standards and politics
On Tue, 17 Aug 1999, Birger Langkjer wrote:
> How about making a '${EDITOR}' variable in /etc/bashrc and calling that
> from every script/program instead of vi? F.eks.:
>
> #!/bin/sh
> echo "Do you want to use ${EDITOR} instead of vi? y/n"
>
> if [ (y-something) ]; then
> exec ${EDITOR}
> else
> exec vi
> fi
>
> Maybe that way you can have different editors for console (pico) and
> Xterm (kedit).
>
That's a good idea, because using a variable you could very easily
change what all the scripts/programs are calling by changing only one
line of code.
I need to get busy with learning more about shell programming.
--
R.G. Mayhue
rgmayhue@serenesoftware.com
***********************************************************************
The moral progression of a people can scarcely begin till they
are independent.
--James Martineau
Go get your Independence Linux now!
http://www.independence.seul.org
***********************************************************************