$a is a reserved variable for sort. that could be anoother possible explanation.
In reply to Re: Detect Process End by geektron in thread Detect Process End by rcolman