Macro Variable Syntax Problem

Nathaniel Gray n8gray at caltech.edu
Sat Aug 28 21:03:19 CEST 2004


On Aug 28, 2004, at 7:23 AM, Dumin, Nels wrote:
>
> Aha!  The output is
>
>   --Variable syntax
>   /home/ndumin/share/nedit/expander/macros/system.nm--
>
> I solved my problem by setting $HOME with the getenv function:
>
>   #$HOME               = shell_command ("echo -n $HOME", "")
>   $HOME               = getenv ("HOME")
>
> Although my problem is solved, my underlying question remains the same:
> Why did the old way suddenly stop working?  AFAIK, nothing changed -- 
> it
> just decided to stop working.

The string "Variable syntax" doesn't exist in our sources anywhere so 
it probably doesn't come from us.  Do something like:
	insert_string( shell_command ("echo -n $SHELL", "") )

to see what shell you're using in NEdit (it might not be the same as 
your usual shell) and double-check the startup scripts for that shell.  
If this is a work system perhaps a sysadmin made a mistake in a 
system-wide startup file.

Cheers,
-n8

--
 >>>-- Nathaniel Gray -- Caltech Computer Science ------>
 >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->




More information about the Discuss mailing list