Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery]Second proposal for edit_file()

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Harley J Pig <harleypig AT harleypig.com>
  • To: sm-sorcery <sm-sorcery AT lists.ibiblio.org>
  • Subject: Re: [SM-Sorcery]Second proposal for edit_file()
  • Date: Tue, 10 Sep 2002 12:47:40 -0600

I know this is a reply to a week old thread, but I'm behind.

On Sunday 01 September 2002 23:52, Robin Cook wrote:
> Only thing I can think of is needing the -w swich so that nano won't
> have the line wrapping problem.

How about adding something like $EDITOR_OPTS and allow the user to set
their own options. Then the function would be written as follows:

edit_file() {
${EDITOR:-nano} ${EDITOR_OPTS} $1
}

This would allow people to have their own custom options very easily
without bloating the code.

Should I submit this as a patch to bugzilla?

Alan




Archive powered by MHonArc 2.6.24.

Top of Page