Perhaps "Pid" is already assigned a specific value, and you are trying to reassign it.
Here's how it works on my machine:
Eshell V5.9.1 (abort with ^G)
1> c(echo).
{ok,echo}
2> f.
f
3> Pid = echo:start().
<0.39.0>
4> Pid = echo:start().
** exception error: no match of right hand side value <0.41.0>
5>
As you can see, the first construction of "Pid =" woks is excellent, but the second produces the error message that you described.
I think you have already used Pid in the shell, and it has a specific meaning.
Try "reset" the Pid variable and use it as shown below:
8> f(Pid).
ok
9> Pid.
* 1: variable 'Pid' is unbound
10> Pid = echo:start().
<0.49.0>
, :
13> f().
ok
14> Pid = echo:start().
<0.54.0>
f(). - f.