Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Issue with .bash_profile #47

Open
rm-code opened this issue Sep 2, 2018 · 0 comments
Open

Issue with .bash_profile #47

rm-code opened this issue Sep 2, 2018 · 0 comments

Comments

@rm-code
Copy link

rm-code commented Sep 2, 2018

I have a function in my .bash_profile that is exported.

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

For some reason this causes linter-luacheck to throw the following error:

[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:20)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant