Questions about aliases.

May 20, 2008
11,411
99
Syracuse, NY, USA
Below, (a) why isn't the redirection set up before %$ is assigned (as is the case with batch files)? and (b) why is test_alias unknown when I put the redirection first?

Is there a way to avoid either or both of these in the alias itself (i.e., not at run time)?

Code:
v:\> alias test_alias
echo %@len[%$]

v:\> test_alias foo > nul
9

v:\> 1>NUL test_alias foo
TCC: Unknown command "test_alias"

These go back to (at least) 4NTv8.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Long file names - a few questions Support 2
C DIFFER questions.... Support 66
Mezlo menu batch file questions Support 25
S FORUM questions Support 2
C z_newmove.btm questions Support 6
S Documentation Questions re: ON Support 13
C TPIPE questions.... Support 5
mikea Questions re: Internal ZIP command Support 5
S PDIR and @LABEL questions Support 4
S Questions about new build announcements Support 0
C tpipe questions Support 5
aedthuio Some questions Support 10
C @shfolder questions Support 7
gschizas Licensing questions Support 3
S Documentation File reading questions Support 4
M Just some questions about TCC "hanging" and PIDs... Support 4
ehab aboudaya How to? 2 GUI questions and return HWND using TakeCommandIPC Support 3
S Questions about @winapi/@capi Support 8
M Questions about @Assoc and @FType... Support 18
M A questions about @Files "+d" Support 35
mikea TCC v12 startup questions Support 15
S ON and REBOOT questions Support 3
S xxxMONITOR command questions Support 1
mikea BDEBUGGER/IDE questions Support 16
P Installer questions/gripes Support 2
C General questions Support 9
vefatica Vista questions Support 4
H IDE v10 questions Support 2
S V10 questions Support 8
C Few questions and suggestions Support 2
nikbackm IFTP questions Support 3
Jay Sage Parameter %$ Different in Aliases and BTMa Support 4
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 Backquotes, aliases get 'em, BTMs don't? Support 1
vefatica Aliases global vs. local Support 12
R key aliases no longer working Support 2

Similar threads