Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $HOME not set and zsh crashing in emulation mode
- X-seq: zsh-users 22042
- From: Paulo César Pereira de Andrade <paulo.cesar.pereira.de.andrade@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: $HOME not set and zsh crashing in emulation mode
- Date: Fri, 28 Oct 2016 10:04:04 -0200
- Cc: zsh-users@xxxxxxx
- 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==
- In-reply-to: <20161027201907.GA14974@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAHAq8pEPk41cxWdqyBLawsbadAt+JUBnv59nZbNLkte8nfX0iw__31688.0478793339$1477597412$gmane$org@mail.gmail.com> <20161027201907.GA14974@fujitsu.shahaf.local2>
2016-10-27 18:19 GMT-02:00 Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>:
>> """
>> $ 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 <pws@xxxxxxx>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author