Try doing "stty -echo" as the first thing in es. If you linked es with readline, that should stop the repetition. If you linked es with editline, you're screwed, because editline insists on thinking it knows better than you do about whether you want echo on or off, and will do you the "favor" of turning it back on no matter what. Probably this bug ought to be fixed.