i have this script that shows sections of ini's

Code:
alias inisec {
  ; Syntax: /inisec inifile
  if (!$isfile($1-)) .echo -a File doesn't exist. $+($chr(40),$1-,$chr(41))
  var %i = 1
  while ($ini($1-,%i) != $null) {
    .echo -a $v1
    inc %i
  }
}

;//echo -a $ini(FILE.ini,1)


so it lists

[sect1]
[sect2]
...
...

my question, what should i do so it lists them
but like this: [sect1],[sect2],[sect3]

?