Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh requires Bash? 2002 revisited
- X-seq: zsh-users 23058
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Martijn Dekker <martijn@xxxxxxxx>
- Subject: Re: Zsh requires Bash? 2002 revisited
- Date: Sun, 7 Jan 2018 08:48:34 +0000
- Cc: zsh-users@xxxxxxx
- 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==
- In-reply-to: <4e96813d-3762-da35-f681-2546c0265982__30442.5932620235$1515274776$gmane$org@inlv.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Martijn Dekker <martijn@xxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+rB6G+SJ+cojcoDgSAwM5PQAJhF_peVTyHbRYzrQ4ZTunNnCw@mail.gmail.com> <CAH+w=7ZFYxPN559pyystrLf2Ggn89D7gzHyhDzLAKaoJ9wiZ2Q@mail.gmail.com> <CA+rB6G+urH8g4TTNji44CS5jc5hqa+=Uuc=xxCzB1ggHW2XOgg@mail.gmail.com> <4e96813d-3762-da35-f681-2546c0265982__30442.5932620235$1515274776$gmane$org@inlv.org>
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 <<EOM >> ${CONFIG_MODULES}.sh
case "\$userlist" in
- *" $name "*) grep "^name=$name " \${CONFIG_MODULES}.old;;
+ *\ $name\ *) grep "^name=$name " \${CONFIG_MODULES}.old;;
*) echo "$result";;
esac
EOM
Messages sorted by:
Reverse Date,
Date,
Thread,
Author