Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1680

DO i=1 to %# in an alias?

$
0
0
Why doesn't this work?

Code:
v:\> alias nargs `do i=1 to %# ( echo %[%i] )`

v:\> nargs a b c
Usage : DO [n | FOREVER]

According to the help for ALIAS,

The special parameter %# contains the number of command line parameters.

Viewing all articles
Browse latest Browse all 1680

Trending Articles