I've extended this behaviour even further.
there are two new preferences:
AddPreference('extra_subst','0');
AddPreference('extra_subst_list','\\a=*,\\d=$,\\m=&,\\p=%,\\q=",\\s= ,\\u=\',\\w=?');
If extra_subst is turned on (which it won't be by default), then any of the special escaped characters will be substituted if used:
\a => *
\q => "
\d => $
and so on. These are just the defaults -- You can customize your substitution characters yourself with the extra_subst_list preference (see above for syntax example). Technically, they don't have to be in the \x form, and you could use it for mini-macros such as
hbd => Happy Birthday!
it's in the dev build now: [fbcmd update dev] if you want to play with it.
If anyone knows of an existing standard convention for these type of substitutions (\a => *) let me know, I just made these up.
Caveat Emptor: Your shell may already make special substitutions before it gets to fbcmd.
-Dave