From: "Ivan S. Freitas" <ivansichfreitas@gmail.com>
To: zsh-workers@zsh.org
Subject: Bug in sh emulation
Date: Fri, 9 Dec 2011 23:39:12 -0200 [thread overview]
Message-ID: <CAG2tFJy+crpJVg2m1kO9H=fhYUYqPWEuJg+ivDaXCqzqOxa3Hg@mail.gmail.com> (raw)
Zsh is hanging in commands like: emulate sh -c "(echo | grep)"
Everything I've tried in the form "(command | command)" fails in the same way.
zsh 4.3.14
/configure --prefix=/usr \
--bindir=/bin \
--enable-etcdir=/etc/zsh \
--enable-zshenv=/etc/zsh/zshenv \
--enable-zlogin=/etc/zsh/zlogin \
--enable-zlogout=/etc/zsh/zlogout \
--enable-zprofile=/etc/zsh/zprofile \
--enable-zshrc=/etc/zsh/zshrc \
--enable-maildir-support \
--with-term-lib='ncursesw' \
--enable-multibyte \
--enable-function-subdirs \
--enable-fndir=/usr/share/zsh/functions \
zshrc: https://github.com/ISF/dotfiles/blob/master/.zshrc
Although it doesn't seem to be affected by settings in the startup files.
Origin: last update of zsh in archlinux uses /etc/zsh/zprofile in the
startup, which runs emulate sh -c "/etc/profile".
In /etc/profile.d/GNUstep.sh there is the following:
if [ -n "$ZSH_VERSION" ]; then
# If -y is not already set, set it and remember that we # need to
set it back to what it was at the end. if ( setopt | grep shwordsplit
> /dev/null ); then :; else set -y
GS_ZSH_NEED_TO_RESTORE_SET=yes fi
fi
The most inner if makes the initialization of every zsh (as a login
shell) hangs until a SIGINT is sent.
--
Ivan Sichmann Freitas
GNU/Linux user #509059
next reply other threads:[~2011-12-10 1:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-10 1:39 Ivan S. Freitas [this message]
2011-12-10 2:47 ` Bart Schaefer
2011-12-10 3:40 ` Bart Schaefer
2011-12-10 18:15 ` Peter Stephenson
2011-12-10 19:40 ` Peter Stephenson
2011-12-10 23:28 ` Peter Stephenson
2011-12-11 19:39 ` Peter Stephenson
2011-12-11 20:20 ` Peter Stephenson
2011-12-11 20:56 ` Peter Stephenson
2011-12-11 23:39 ` Bart Schaefer
2011-12-12 10:01 ` Peter Stephenson
2011-12-12 10:14 ` Peter Stephenson
2011-12-12 15:44 ` Bart Schaefer
2011-12-12 16:06 ` Peter Stephenson
2011-12-12 18:10 ` Bart Schaefer
2011-12-12 19:16 ` Peter Stephenson
2011-12-11 22:37 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG2tFJy+crpJVg2m1kO9H=fhYUYqPWEuJg+ivDaXCqzqOxa3Hg@mail.gmail.com' \
--to=ivansichfreitas@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).