@NAME supports library functions

May 20, 2009
The @NAME internal variable function also supports library functions.

For example, if I have a library function called SetVar, @NAME returns SetVar.

I would suggest updating the help file to include this new feature;
Returns the base name of a file, or library function, without the path or extension.
I just did some tests, and it seems to me that @NAME simply takes the argument and takes away the last part, starting from the last dot.
So, echo %@name[abc] returns abc, even if abc is not a file, nor a function, nor an alias, nothing.
P.S. It is described in the help.
Note: The @NAME function makes no assumption about the existence of a file or directory. Its filename parameter can be any string and the function will attempt to extract from it a base name.


Rodolfo Giovanninetti