In the definition of shellCmdMS is the following comment
/* Shell command execution requires that the macro be
suspended, so this subroutine can't be run if macro
can't be interrupted */
However, putting shell_command() in a menu definition
you can run it via macro_menu_command() from inside
a smart indent macro. Repeated calls to such macros will
crash nedit eventually.