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

DO Command Fails in Alias with a Parameter for Count or Condition

$
0
0
Shouldn't the alias shown below work?

alias zz & zz one two three
echo Parameter count = %# & do %# (echo test)
Parameter count = 3
Usage : DO [n | FOREVER]

It's not only the parameter %# that doesn't work with DO.

alias zz & zz one two three
set count=%# & echo Parameter count = %count & do %count (echo test)
Parameter count = 3
Usage : DO [n | FOREVER]

DO does accept parameters when run directly from the command line rather than an alias.


Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles