I am creating an Atom package and trying to incorporate a ShellJS command. I want to use the exec()
commmand, and it's returning null everytime, for every command.
shelljs = require 'shelljs/global'
console.log exec('which git').code // returns null
console.log which 'git' // returns the correct path
why?