Quantcast
Viewing all articles
Browse latest Browse all 1683

Questions about aliases.

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.

Viewing all articles
Browse latest Browse all 1683

Trending Articles