Text filter question

52 views
Skip to first unread message

Greg Raven

unread,
Jan 13, 2018, 10:32:07 AM1/13/18
to BBEdit Talk
I have three text filters in my BBEdit Text Filters folder. Two work, but one doesn't.

This works:

#!/bin/bash
csscomb assets/css

This works:

#!/bin/bash
js-beautify


This doesn't:

#!/bin/bash
jshint


If I open the Terminal.app and navigate to a folder containing a JavaScript file, I can type in ...

jshint analytics.js

... (for example) and get a report as expected. I can also invoke the other two from the command line and have them work as expected.

Any thoughts on what I'm missing?

Fletcher Sandbeck

unread,
Jan 13, 2018, 11:13:35 AM1/13/18
to bbe...@googlegroups.com
It looks like JSHint requires a dash to indicate that it should read content from standard input. Many CLI tools read from stdin by default when they don't see a file name specified, but others require - or another parameter to trigger this behavior.

#!/bin/bash
jshint -


Hope this helps,

[fletcher]


--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Greg Raven

unread,
Jan 13, 2018, 11:44:46 AM1/13/18
to bbe...@googlegroups.com
D’oh! I didn’t read down that far. Thanks, Fletcher!

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/Zf4-iSmq38E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.

Luc Bressinck

unread,
Jan 14, 2018, 3:31:54 AM1/14/18
to bbe...@googlegroups.com
Is it made executable?
Luc Bressinck
August Wautersstraat 40C
B-9140 Temse
Belgium
+32 3 771 20 10 
+32 497 55 08 66
bressi...@scarlet.be



Reply all
Reply to author
Forward
Message has been deleted
0 new messages