Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Procmail rejects zsh as being "broken"



Zoltan Hidvegi <hzoli@xxxxxxxxxx> wrote:
>Well, when zsh is invoked as zsh it does not pretend to be Bourne shell
>compatible.

Ah, a misconception on my part.  I've always seen zsh "advertised" as
Bourne shell compatible.

>as sh.  The complicated *zsh* test in procmail is unnecessary.  It'll never
>work.

I didn't know that.  I thought it was an oversight of zsh developers in
the default settings of zsh.  Now I know better, of course.

>  The problem is that procmail tells that zsh is broken.  Zsh is not
>broken, it is simply different from a Bourne shell when invoked as zsh.
>Procmail should just inform the user that it uses /bin/sh or whatever
>instead of zsh and should not spread misinformation about zsh.

Fair enough.  The problem in this case transposes itself to "make" then.
"make" *has* to make that SHELL is set to a Bourne shell compatible
shell.  If it leaves it at zsh, it's a bug.

In that light, we'll avoid the test and change the diagnostics to:
===================================================================
RCS file: /var/lib/cvs/procmail/initmake,v
retrieving revision 1.66
diff -u -r1.66 initmake
--- initmake	1996/07/29 18:48:23	1.66
+++ initmake	1996/08/01 14:42:50
@@ -23,7 +23,7 @@
   case "$BSHELL" in
      *zsh*) ;;
      *) echo "(If I wouldn't know better, I'd say you're trying to sell"
-	echo "me a buggy zsh :-)" ;;
+	echo "me an incompatible zsh :-)" ;;
   esac
   echo "Please edit the Makefile and try setting BSHELL to a shell which"
   echo "is more backwards compatible with a Bourne, Korn or POSIX shell."
@@ -55,17 +55,7 @@
 case "$SHELL" in
   *sh*)
      case "$SHELL" in
-	*csh*) echo "Warning: really perverted make detected"; SHELL="";;
-	*zsh*) $RM src/_autotst
-	    $SHELL <<HERE
-	    O="echo test >src/_autotst"
-	    exec 2>$DEVNULL
-	    \$O
-HERE
-	   if test ! -f src/_autotst
-	   then
-	      echo "Warning: your $SHELL is broken, avoiding it"; SHELL=""
-	   fi ;;
+	*[zc]sh*) echo "Warning: really perverted make detected"; SHELL="";;
      esac
      if test ! -z "$SHELL"
      then
-- 
Sincerely,                                                          srb@xxxxxxx
           Stephen R. van den Berg (AKA BuGless).
Auto repair rates: basic labor $40/hour; if you wait, $60; if you watch, $80;
if you ask questions, $100; if you help, $120; if you laugh, $140.



Messages sorted by: Reverse Date, Date, Thread, Author