Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with custom .bash_profile on macOS #99

Open
rm-code opened this issue Oct 7, 2018 · 0 comments
Open

Issue with custom .bash_profile on macOS #99

rm-code opened this issue Oct 7, 2018 · 0 comments

Comments

@rm-code
Copy link

rm-code commented Oct 7, 2018

sb-exec seems to produce an error at the startup of Atom Editor if I have the following content in my .bash_profile:

function foo() {
    ~/bar "$@"
}
export -f foo

txtblu='\e[0;34m'
txtpur='\e[0;35m'
txtrst='\e[0m'   

printf "\n$txtblu%s @ $txtblu%s $txtpur%s\n$txtrst" "$USER" "$PWD"

I originally thought it was a problem with AtomLinter, but was forwarded to the exec repository instead. The error log comes from Atom Editor, so I'm not sure if it actually helps:

[Linter] Error running Luacheck Error: /bin/sh: foo: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `foo'
    at ChildProcess.<anonymous> (/Users/robert/.atom/packages/linter-luacheck/node_modules/sb-exec/lib/index.js:56)
    at emitTwo (events.js:126)
    at ChildProcess.emit (events.js:214)
    at maybeClose (internal/child_process.js:925)
    at Socket.stream.socket.on (internal/child_process.js:346)
    at emitOne (events.js:116)
    at Socket.emit (events.js:211)
    at Pipe._handle.close [as _onclose] (net.js:554)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant