From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5887 invoked by alias); 7 Jan 2018 08:48:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23058 Received: (qmail 1468 invoked by uid 1010); 7 Jan 2018 08:48:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.49):SA:0(-1.9/5.0):. Processed in 4.087946 secs); 07 Jan 2018 08:48:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=S9ZvX2F9/5XK5uLdRLJjjY2+gZlZGbvkpycCDye65xc=; b=TcSD0100xHg+5w9Qw/oVmC2dCwhWPl/Tkqi9JGVIDrSzOY4LZQdf9md3p7et3qVnWc dMy2Tuoda0Hi5YnLVfKCBQ+9asUyZcRZP2bCJqO4r/c1o6Y0aKyHTaugKO4MrVM4O/ls UIIGw1nTdJ+Ow1wozrrNTQfukuKAna6ADG0vgOmZvluksUMFTJd2n1rUILRWU3oWFKDM eruelBE2ktZ8O615OuEFetl5HB0iSUUm5dN9qfobO2AKezaCNYGnmUjuECeukhiM6Gqc EyGP4HGHQCJ3h92vd6A4zgF24PgLVH5wI8GbAnaE6wzfxsz5nj9tD9nJ4qGvZcc3HjcV 7XpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=S9ZvX2F9/5XK5uLdRLJjjY2+gZlZGbvkpycCDye65xc=; b=Gmg+bNlndO/6bL34eHsw9T63SDrsZUwcQvxPWc5tpqEOB4u3gkskWRQipZX2rq3IcT HAARnEyYB8/SJHmyLvX7p+88dWTlmpGMfc3tgNtH4BOfzxaGARfzjoBXsIGTCvtmPO4C HG/wH8E1TSYEgJ/DbrM+EcDmjqSU/CtLew6BfZ/WCXIrDuUKkLMc2fnlzg75CAFZAKbW ametkmlNwj81AiF6TdVNY0mQMSdxAwWXigYJANMtlFqUPgndWXXGkjQroXac/EX9cdFA 3R4F2HAZ2xKicJ4kilwrOGMKo+RbHpedr8IbbS5mwDkcl4lJ/kSJQa27YmMnKXbCLAqk 4kbg== X-Gm-Message-State: AKGB3mI7XijstW8qa0ShZrIoCjMsCN33bD1/zLZuKoDiQquyPXeLttAL h7lKqcWY/ESoVWwnQ3wzxOR/MA== X-Google-Smtp-Source: ACJfBoum+qQkZEw6rfuC4LnLmdpphZ4CykvtIGViFBaDw0ncqAKlraebpegbZxMLI2ONrlVTYdC2sQ== X-Received: by 10.28.130.8 with SMTP id e8mr6930585wmd.68.1515314916037; Sun, 07 Jan 2018 00:48:36 -0800 (PST) Date: Sun, 7 Jan 2018 08:48:34 +0000 From: Stephane Chazelas To: Martijn Dekker Cc: zsh-users@zsh.org Subject: Re: Zsh requires Bash? 2002 revisited Message-ID: <20180107084834.GB17598@chaz.gmail.com> Mail-Followup-To: Martijn Dekker , zsh-users@zsh.org References: <4e96813d-3762-da35-f681-2546c0265982__30442.5932620235$1515274776$gmane$org@inlv.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e96813d-3762-da35-f681-2546c0265982__30442.5932620235$1515274776$gmane$org@inlv.org> User-Agent: Mutt/1.5.24 (2015-08-30) 2018-01-06 22:21:36 +0100, Martijn Dekker: [...] > However, posh is non-compliant, bug-ridden, unmaintained, generally > broken, and should not be used. Your problem would be solved by deleting > posh and using dash for /bin/sh instead. [...] One of those bugs at least causes the wrong options for yodl to be used and "-s" (strip) to be used. $ posh -c 'case abc in *"b"*) echo yes; esac' $ posh -c 'case abc in *b*) echo yes; esac' yes The patch below works around those, but it still doesn't build with posh. I'd tend to agree it's probably not worth the effort working around those if posh is no longer maintained. diff --git a/configure.ac b/configure.ac index 1a498f8..e73c4d1 100644 --- a/configure.ac +++ b/configure.ac @@ -515,21 +515,21 @@ sed=':1 s/ *$//' case " $LDFLAGS " in - *" -s "*) strip_exeldflags=true strip_libldflags=true + *\ -s\ *) strip_exeldflags=true strip_libldflags=true LDFLAGS=`echo " $LDFLAGS " | sed "$sed"` ;; *) strip_exeldflags=false strip_libldflags=false ;; esac case " ${EXELDFLAGS+$EXELDFLAGS }" in " ") ;; - *" -s "*) strip_exeldflags=true + *\ -s\ *) strip_exeldflags=true EXELDFLAGS=`echo " $EXELDFLAGS " | sed "$sed"` ;; *) strip_exeldflags=false ;; esac case " ${LIBLDFLAGS+$LIBLDFLAGS }" in " ") ;; - *" -s "*) strip_libldflags=true + *\ -s\ *) strip_libldflags=true LIBLDFLAGS=`echo " $LIBLDFLAGS " | sed "$sed"` ;; *) strip_libldflags=false ;; esac @@ -626,9 +626,9 @@ AC_CHECK_PROGS([YODL], [yodl], [: yodl]) YODL_OPTIONS='' if test "x$ac_cv_prog_YODL" = xyodl; then case `yodl --version` in - *"version 2."*) YODL_OPTIONS='-k' ;; - *"version 3."*) YODL_OPTIONS='-k -L' ;; - *"version 4."*) YODL_OPTIONS='-k -L' ;; + *version\ 2.*) YODL_OPTIONS='-k' ;; + *version\ 3.*) YODL_OPTIONS='-k -L' ;; + *version\ 4.*) YODL_OPTIONS='-k -L' ;; esac fi AC_SUBST(YODL_OPTIONS) @@ -3223,7 +3223,7 @@ dnl $result is the default output for config.modules. We generate dnl code to check if we should use this. cat <> ${CONFIG_MODULES}.sh case "\$userlist" in - *" $name "*) grep "^name=$name " \${CONFIG_MODULES}.old;; + *\ $name\ *) grep "^name=$name " \${CONFIG_MODULES}.old;; *) echo "$result";; esac EOM