Backquotes, aliases get 'em, BTMs don't?

May 20, 2008
11,388
99
Syracuse, NY, USA
Is that right ... backquotes are passed to aliases but not to BTMs? I was a little surprised. Is that WAD?
Code:
v:\> alias eeval
echo %@eval[%1]
 
v:\> eeval `1+2`
TCC: No expression "`1+2`"
 
v:\> type eeval.btm
echo %@eval[%1]
 
v:\> eeval.btm `1+2`
3
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
WAD. Back quotes are removed after alias & variable expansion is performed, and just before the command is passed to the parser routine that sends it to the appropriate place for execution (external app, batch file, or internal command).

If back quotes were removed before alias expansion, they'd be completely useless.
 
Similar threads
Thread starter Title Forum Replies Date
N Problems with backquotes in filenames Support 17
Jay Sage Parameter %$ Different in Aliases and BTMa Support 4
vefatica Questions about aliases. Support 1
Jay Sage Request Re Aliases CD_LEAVE and CD_ENTER Support 2
Joe Caverly Expand all aliases on the command line Support 2
S Take Command crashes for aliases with length > 1015 Support 1
Joe Caverly SETLOCAL removes Aliases and Functions Support 3
vefatica Two @FUNCTIONs/aliases with the same name Support 4
D Can ANSI escape sequences be used in keystroke aliases? Support 8
Joe Caverly Documentation Aliases Overview Support 3
vefatica Display of special characters in aliases. Support 25
T aliases disappearing Support 22
J Autoexecute Keystroke Aliases Support 1
vefatica Aliases ... appending unused parameters? Support 2
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
MickeyF WAD 'if' and aliases don't mix so well Support 5
M How to? Logic in aliases... Support 3
J Saving aliases Support 21
vefatica Aliases global vs. local Support 12
R key aliases no longer working Support 2
newbie Test to ensure aliases are loaded Support 6
D Are local aliases inherited? Support 4
T FTP.CFG file aliases Support 5
vefatica @@key aliases cause new prompt? Support 16
J TCC Out of memory with aliases and functions Support 5
J Problem with aliases Support 6
P Quick help for aliases Support 3
R Alt-key aliases? Support 3
vefatica BTMs and pipes ...? Support 2
vefatica BTMs in Explorer's preview pane? Support 4
vefatica Coruption after which BTMs won't run Support 7

Similar threads