zsh-workers
 help / color / mirror / code / Atom feed
* leading '=' in enviroment variable truncated
@ 2016-05-07 16:21 Jacob Lowe
  2016-05-07 16:43 ` Jacob Lowe
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jacob Lowe @ 2016-05-07 16:21 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-05-09 14:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-07 16:21 leading '=' in enviroment variable truncated Jacob Lowe
2016-05-07 16:43 ` Jacob Lowe
2016-05-08 17:59 ` Bart Schaefer
2016-05-08 19:12   ` Peter Stephenson
2016-05-08 20:24     ` Bart Schaefer
2016-05-08 20:28       ` Peter Stephenson
2016-05-08 21:58         ` Bart Schaefer
2016-05-08 22:16           ` Bart Schaefer
2016-05-09  9:11             ` Peter Stephenson
2016-05-09 14:52               ` Bart Schaefer
2016-05-09  2:14 ` Bart Schaefer
2016-05-09  2:19   ` Jacob Lowe

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).