On Wed, Feb 18, 2009 at 14:57, Valerio Messina <[email protected]> wrote:
> I have one problem with 'autoload.nm' macro file.
> In the 'start-nc.sh' script I inserted this line:
> export ProgramFiles=`./cygwin/bin/shell-co/cygpath -u "$PROGRAMFILES"`
> and in Nedit, executing a shell command like:
> echo $ProgramFiles
> paste something like:
> /cygdrive/c/program files
>
> Now 'autoload.nm' is:
> load_macro_file("$ProgramFiles/nedit/cygspecial.nm")
>
> but on Nedit startup I got an error:
> Error executing macro: variable not set: $ProgramFiles
>
> I tried also to change 'autoload.nm' to:
> load_macro_file($ProgramFiles"/nedit/cygspecial.nm")
> with no difference.
>
> I do not know if shell variables are seen in Nedit macro files?
> And more, what quoting are needed to preserve the space in path?
Not this way. Use getenv("ProgramFiles"). No need for quoting.
load_macro_file(getenv("ProgramFiles") "/nedit/cygspecial.nm")
Bert
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop