Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
        bh=DijMIJriw+x9jWDt9ALl9X08Pe/Xif0sdob/FAF38SI=;
        b=khuvLtr9uWdqazB9/20W9oxBWG7ktPZQmfnvfX0MC4LgoOAarhReUyL6qX8hbwC+L5
         2tqy8mxrrZtkPKz49f8UX9OlOLsbgYmxQTtNaIQCyfHBKJ0cW2gjE26EvqRIS/yTdBqk
         qkSKGpnnFxDDh4heuZMCerzRspuEnl/XIt1tUYgAs1/kXoWydxBBGeTGEx0KMjLl43NH
         AnwGMcSWaSS/m7srDRJ6vfRhN0Gy/9jMmlKUD0hchLDyz84Ev0tfhL48OBPBt/RERSbO
         +i2NRuQGggQu+nJRktvp2zv9Sbvk8VKlTzsXKMQ42YIgQz3H7Sx4bfnNfwfgh/9ISFEY
         5yhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to;
        bh=DijMIJriw+x9jWDt9ALl9X08Pe/Xif0sdob/FAF38SI=;
        b=gqVCi2Jurt8lpk7DRBQCMmZZqPG/dybfTDqqKJUALVJYQo5HtZWshEFjrpPKxBoc8t
         jD0ft37dPIK3WBzImjqLUUG4Xchp3W1KYHeFG/jommKwcEEn3L//4Ql+n5o8Cczk22ye
         2b9G/STvKNFMIkQ0NZYcz78Z3GhU/Ymhkv1homNF4EEiS3V9IrXUiPU3GW9/KGN7ggnE
         ZsmbiWDWybaqF28+W6Cz3UD1V6ic9XxdQnrbo1n7A59qDSd3wBIBPvcJJxgKOZJ1qizq
         iHdufj7uMB+Wqhl/7mblf5b+adHNueLDFmoKZZ4Q7vZl+Z74VvruFNXg6j3p0pgzDNaH
         gaWg==
X-Gm-Message-State: AOPr4FUHahJzDEEpLA027qjTTAt1EJub57QBlI6iSbC3Qfwc0iVPO14eCQLWT8536aMaebfPKSek8WTlx72nPg==
X-Received: by 10.176.69.235 with SMTP id u98mr15721363uau.131.1462639426845;
 Sat, 07 May 2016 09:43:46 -0700 (PDT)
MIME-Version: 1.0
References: <CAEyFG7ZkxS9iuVtEoJT2aa_ErBm=Nm6JqkpSgt=-=3P-nuZBtg@mail.gmail.com>
In-Reply-To: <CAEyFG7ZkxS9iuVtEoJT2aa_ErBm=Nm6JqkpSgt=-=3P-nuZBtg@mail.gmail.com>
From: Jacob Lowe <jacoblowe2.0@gmail.com>
Date: Sat, 07 May 2016 16:43:37 +0000
Message-ID: <CAEyFG7a9mFztTteV=WPLmVCM3+dyXSU5wtv7KdgJyC65fNbvaw@mail.gmail.com>
Subject: Re: leading '=' in enviroment variable truncated
To: zsh-workers@zsh.org
Content-Type: multipart/alternative; boundary=94eb2c11c4c278c02d053243471a
X-Seq: zsh-workers 38418

--94eb2c11c4c278c02d053243471a
Content-Type: text/plain; charset=UTF-8

Sorry realized I sent this out missing a key piece of info. My current
version of *zsh is** 5.0.8 (x86_64-apple-darwin15.0)*. Also the last
example I posted spits out "test" not "FOO".

On Sat, May 7, 2016 at 9:21 AM Jacob Lowe <jacoblowe2.0@gmail.com> wrote:

> Hey all,
>
> First off thanks for making/maintaining ZSH. Its a awesome project, and
> has been my default shell for 3 plus years.
>
> I recently ran into a unique thing that ZSH does that cause a bug that was
> filed on a project I help maintain.
>
> https://github.com/motdotla/dotenv/issues/140
>
> It is a javascript module that loads environment variables into the
> process for the node program to use. I noticed the module was parsing the
> the env ok and the bug only occurred while preloading the script. I tried
> to load in the env via the command line straight into the node program as
> well.
>
> TEST='=FOO' node -e 'console.log(process.env.TEST)'
>
>
> This spits out "FOO" with no leading "=".
>
> So I filed and issue on nodejs repo thinking this had to do with the way
> it was handling the environment variables.
>
> https://github.com/nodejs/node/issues/6627
>
> From the feedback in the ticket, it seems this is happening in ZSH only
> and when logging into bash the command works as expected. I also tried
> something very similar in ruby and got the same result.
>
> TEST='=test' ruby -e 'puts ENV["TEST"]'
>
>
> This also spits out "FOO" with no leading "=".
>
> Is this intended behavior? and thanks again.
>

--94eb2c11c4c278c02d053243471a--

