it should be this

Code:
 alias quote { msg $chan $read(filename or path) } 
or 
alias quote { echo -a $read(filename or path) }


var only set the variable once so that is why you always get 2 because it is set as 2.