Skip to content

Instantly share code, notes, and snippets.

@lee-dohm
Created July 18, 2015 01:17
Show Gist options
  • Save lee-dohm/08f9aa05ce83f9a46239 to your computer and use it in GitHub Desktop.
Save lee-dohm/08f9aa05ce83f9a46239 to your computer and use it in GitHub Desktop.

Repro Steps: Launching from Dock

  1. Close all instances of Atom
  2. Launch Atom from the Dock
  3. Open the developer tools
  4. Enter the command: spawnSync = require('child_process').spawnSync
  5. Enter the command: spawnSync('/bin/zsh', ['--login'], {input: "env"}).stdout.toString()
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
  1. Enter the command spawnSync('/bin/bash', ['--login'], {input: "env"}).stdout.toString()
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

Repro Steps: Launching from Terminal

  1. Close all instances of Atom
  2. Launch Atom from iTerm
  3. Open the developer tools
  4. Enter the command: spawnSync = require('child_process').spawnSync
  5. Enter the command: spawnSync('/bin/zsh', ['--login'], {input: "env"}).stdout.toString()
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:.git/safe/../../bin:/Users/Lee/.rbenv/shims:/Users/Lee/.nvm/versions/io.js/v1.8.1/bin:/Users/Lee/.bin:/usr/local/sbin:/usr/local/lib/node_modules:/Users/Lee/.rbenv/bin
  1. Enter the command spawnSync('/bin/bash', ['--login'], {input: "env"}).stdout.toString()
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:.git/safe/../../bin:/Users/Lee/.rbenv/shims:/Users/Lee/.nvm/versions/io.js/v1.8.1/bin:/Users/Lee/.bin:/usr/local/sbin:/usr/local/lib/node_modules:/Users/Lee/.rbenv/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment