updated for version 7.0002
diff --git a/src/option.c b/src/option.c
index ca95cc0..fcbddea 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3115,7 +3115,7 @@
      * "-c" and "\"", but not for DJGPP, because it starts the shell without
      * command.com.  And for Win32 we need to set p_sxq instead.
      */
-    if (strstr((char *)p_sh, "sh") != NULL)
+    if (strstr((char *)gettail(p_sh), "sh") != NULL)
     {
 	int	idx3;