Recyclizations of 2-aminobenzylimines and thioaroylhydrazones of N-substituted N-hydroxy-3-oxobutanamides