From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29735 invoked by alias); 28 Oct 2016 13:45:18 -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: X-Seq: 22042 Received: (qmail 28452 invoked from network); 28 Oct 2016 13:45:18 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f51.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(209.85.218.51):SA:0(0.0/5.0):. Processed in 0.47399 secs); 28 Oct 2016 13:45:18 -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=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: paulo.cesar.pereira.de.andrade@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.218.51 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hanIX4AQPdqYsmJIdVkzDg0md052XEqwOUzE8HZLW44=; b=CjVncW2LMl8Z5LF8llEESRU/auS9Wb+q4vN8X3woIZDiIdY25f0m/c9nZfMcEH6IbT FHMQiiOAV3OnryM2RhQHSwsEvupwGtjL0vWnbkSZN7K2Dv0qQOyvGToMskfuO9RV07eo Zt4XF48Gc7w3wsAPunstpEtRVGixmGUOWT63p1STz11Ee4eIJ6O2qrmeUw0qivRfaeKB Y1q31T9JAEj4PkPjnPMPSBNGyljFJjwQnaxYvphnRDh9xW8iFXpL03qnZymFxRcL/OoB e2wcBQ3cMtgvf7sPgB0YLxQhvC/j6wZ0wQBNFQHeJFw7gTENopN55riyXy00JKEbSlqk Up1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hanIX4AQPdqYsmJIdVkzDg0md052XEqwOUzE8HZLW44=; b=FuV3bYno/M+7BmTmZvnUwxw7dIwqPglvTluqq3ue+bVJJ/yw8SY6Zpi0OsgMPXxkL7 G8zUgPbauhu++yEnLhdiTyE7C3PBdBgbZ4lC3Ng68vCX1PDET5VSmtxiV+cqnrZQ7kBi wyA5HqisFXovFqGi0gaBvitplR8KsbV3t9m+z5q0pw/bn46oh3EFYgyNXY4Bpc/08/+G 4pv9SndbPHKSA+C9yZg8NR5qPTpqvYrnIiklAvpRTZygtBq8cuvSZa4ls7np6oMCfxi+ tOWqtdj19hIAZirDRCMAPUjUEWS3DpmvK7FKuKm1jLOS7VZXfxPtqhD31U5AiLxFrJ/p nAJA== X-Gm-Message-State: ABUngvcmBXRUFt058w+ALy0TlTn10IHpWVst7lxZxEj+Rf9qay8edTJ1NedM/BENEHoB6r6sN7Iy7Jau9gvyyw== X-Received: by 10.202.171.143 with SMTP id u137mr13507043oie.158.1477656244834; Fri, 28 Oct 2016 05:04:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20161027201907.GA14974@fujitsu.shahaf.local2> References: <20161027201907.GA14974@fujitsu.shahaf.local2> From: =?UTF-8?Q?Paulo_C=C3=A9sar_Pereira_de_Andrade?= Date: Fri, 28 Oct 2016 10:04:04 -0200 Message-ID: Subject: Re: $HOME not set and zsh crashing in emulation mode To: Daniel Shahaf Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 2016-10-27 18:19 GMT-02:00 Daniel Shahaf : >> """ >> $ cat t.sh >> #!/bin/sh >> echo $HOME >> >> $ ln -sf /bin/zsh ksh >> >> $ ./ksh -n t.sh >> Segmentation fault (core dumped) >> """ > > You're using 5.0.2, which is four years old. We've fixed this bug in > 5.2 last year: > > commit 83a175795a444e8169fcb592a110d4d15a09b907 > Author: Peter Stephenson > Date: Tue Oct 6 09:28:07 2015 +0100 > > 36780: Fix crash in ksh mode with -n and $HOME. > > If home variable is NULL ensure HOME is unset. > > Current master does not have the problem: > > % ARGV0=ksh Src/zsh -fn =(<<<$'#!/bin/sh\necho $HOME\n') > % > > Thanks for the bug report and the patch. Sorry for not checking latest sources before reporting upstream. Will do so next time :) I updated the bug report with the patch at https://bugzilla.redhat.com/show_bug.cgi?id=1389492 > Cheers, > > Daniel Thanks, Paulo