[Issue 10580] spawnShell/pipeShell changes some environment variables (incl. PATH)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 28 07:54:26 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10580


Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at kyllingen.net


--- Comment #3 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2013-07-28 07:54:24 PDT ---
I cannot reproduce this on Linux, so it's hard to say what the issue is.  It
would be great if someone else could try this on OSX.

spawnShell() does not touch the environment unless explicitly requested, so I
think the answer lies somewhere else.

It looks almost like spawnShell() starts the shell as a login shell.  In that
case it would read various startup scripts, and re-set PATH along with some
other environment variables.  Could you please run the following commands in a
terminal?

  export PATH=/usr/bin
  $SHELL -c 'echo $PATH'
  $SHELL -l -c 'echo $PATH'

(Note the single quotes, which delay expansion of the PATH variable.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list