From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12526 invoked by alias); 10 Dec 2011 01:39:19 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29970 Received: (qmail 3503 invoked from network); 10 Dec 2011 01:39:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3WrLjkg6CF3mIi2atJHN6yNkwF5I3yDziIHBp4T5MP4=; b=BPhuBlXGbWtp0T+6bOhiRYIpajpLVdF8wIQ5avQNRYZ3vTDV5z03toY4BLvKgp1o5E ExYYUteqmwvf74L8eE2ldTfT9v6Eef0XIKoLDyLdPD73uOlC6l0VIc0H/Un0Okb0VSoe 2YmEB5H5XQmcGFapyItNk62sTe9ANaACPLGYk= MIME-Version: 1.0 Date: Fri, 9 Dec 2011 23:39:12 -0200 Message-ID: Subject: Bug in sh emulation From: "Ivan S. Freitas" To: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Zsh is hanging in commands like: emulate sh -c "(echo | grep)" Everything I've tried in the form "(command | command)" fails in the same w= ay. zsh 4.3.14 /configure --prefix=3D/usr \ --bindir=3D/bin \ --enable-etcdir=3D/etc/zsh \ --enable-zshenv=3D/etc/zsh/zshenv \ --enable-zlogin=3D/etc/zsh/zlogin \ --enable-zlogout=3D/etc/zsh/zlogout \ --enable-zprofile=3D/etc/zsh/zprofile \ --enable-zshrc=3D/etc/zsh/zshrc \ --enable-maildir-support \ --with-term-lib=3D'ncursesw' \ --enable-multibyte \ --enable-function-subdirs \ --enable-fndir=3D/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 =A0 # If -y is not already set, set it and remember that we=A0 # need to set it back to what it was at the end.=A0 if ( setopt | grep shwordsplit > /dev/null ); then :; else=A0 =A0 set -y GS_ZSH_NEED_TO_RESTORE_SET=3Dyes=A0 fi fi The most inner if makes the initialization of every zsh (as a login shell) hangs until a SIGINT is sent. --=20 Ivan Sichmann Freitas GNU/Linux user #509059