I'm trying to get jshint to work in BBEdit via a script. I've got node 
installed via Homebrew and have installed jshint via npm. jshint then show 
up as a regular command line tool, which jshint returns 
/usr/local/bin/jshint and I can successfully call that in a terminal 
session (and a BBEdit worksheet) by supplying the path to the document I 
wish to check. I've placed a shell script in the BBEdit Scripts directory 
that has simply:

#!/bin/sh
/usr/local/bin/jshint $BB_DOC_PATH

But when I execute the script, I get:

env: node: No such file or directory

The output from echo $PATH (either in a terminal session or in a BBEdit 
worksheet) is:

~/bin:
/usr/local/sbin:
~/node_modules/.bin:
/usr/local/share/npm/bin:
/usr/local/Library/Aliases:
/Users/steve/.rvm/gems/ruby-1.9.3-p194/bin:
/Users/steve/.rvm/gems/ruby-1.9.3-p194@global/bin:
/Users/steve/.rvm/rubies/ruby-1.9.3-p194/bin:
/Users/steve/.rvm/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/usr/local/bin:
/usr/X11/bin:
/usr/local/MacGPG2/bin

Anyone got a tip?

TIA,

-S

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to