<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2022: expansion of shell environment $VAR doesn't like digits in VARnames.



The following reply was made to PR mutt/2022; it has been noted by GNATS.

From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2022: expansion of shell environment $VAR doesn't like digits 
in VARnames.
Date: Fri, 5 Aug 2005 19:47:41 +0900

 [How-To-Repeat]
 > shell:
 > export VAR=bla VAR1=var1 VAR2=var2
 > 
 > muttrc:
 > set signature=$VAR2
 > 
 > results in signature=bla instead of =var2
 
 
 
 The problem is at the 275th line of init.c:
 >      for (pc = tok->dptr; isalpha ((unsigned char) *pc) || *pc == '_'; pc++)
 >        ;
 
 Currently mutt supports only alphabets and underscore
 for variable names.
 Maybe we can use isalnum() instead of isalpha().
 But you can workaround it with ${VAR1} and ${VAR2}.
 
 -- 
 tamo