I was reading the Org Syn procedure for making chloroacetamide from ethyl chloroacetate and ammonium hydroxide (Org. Synth. 1927, 7, 16) and it appeared to me that the reaction should not really work.
I though the ammonia would substitute for the chlorine rather than on the ester forming the ethyl ester of glycine as the final product. I was surprised to find that the product is chloroacetamide. Is there a reason that the amine substitutes for the ester over the chlorine? Thanks.