On-Demand Macros issue

Fran=?utf-8?B?w6c=?=ois Laupretre francois.laupretre-prestataire at calyon.com
Wed May 25 19:40:30 CEST 2005


> From: Bryan Loniewski [mailto:brylon at jla.rutgers.edu] 
> 
> Would others find this useful if a patch is applied?
> 
> >        command_line    $USER2$/foo $HOSTADDRESS:$ARG1$$ # Where 
> > $ARG1$=some_host_name

Unfortunately, as the macro starting and ending tags are the same ($), I
think that you cannot implement such an extension in an unambiguous way.
Here is an example:

If you get :

$HOSTADDRESS:pre$ARG1$post$

It is impossible to choose between :

	($HOSTADDRESS:pre$)ARG1($post$)
And	($HOSTADDRESS:pre($ARG1$)post$)

And it is still harder if you get something like
'$HOSTADDRESS:pre$ARG1$ARG2$'.

To conclude, unless you define some new tags for macro expansion, I think
that this extension is not possible. And defining some new tags would bring
many compatibility problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050525/6fbf0bca/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage    
exclusif de son destinataire.                                            
Si vous recevez ce message par erreur, merci d'en aviser immédiatement   
l'expéditeur  et de le détruire ensuite. Le présent message  pouvant  
être altéré à notre insu,  CALYON Corporate and Investment Bank                              
ne peut pas être engagé par son contenu. Tous droits réservés. 
          
This message and/or any  attachments (the "message") is intended for     
the sole use of its addressee.                                            
If you are not the addressee, please immediately notify the sender and    
then destroy the message.  As this message and/or any attachments may 
have been altered without our knowledge,  its content  is not legally 
binding on CALYON Corporate and Investment Bank. All rights reserved.                                                                


More information about the Users mailing list