Index: unnethack-3.5.3/include/unixconf.h
===================================================================
--- unnethack-3.5.3.orig/include/unixconf.h	2010-09-27 11:33:03.467130643 +0400
+++ unnethack-3.5.3/include/unixconf.h	2010-09-27 11:33:41.919129154 +0400
@@ -279,7 +279,9 @@
 #endif
 #define tgetch getchar
 
-#define SHELL		/* do not delete the '!' command */
+#ifdef SHELL
+#undef SHELL		/* do not delete the '!' command */
+#endif
 
 #if defined(POSIX_TYPES) || defined(__GNUC__)
 #include <stdlib.h>
