Embedded Shell Scripts and Smart Quotes

Something I discovered today which may be some use to folks who want to use an embedded shell script in a Hazel action: make sure if you put double-quotes around a shell variable that you are actually putting straight double-quotes, not curly quotes.
It turns out that OS X will "correct" straight quotes into curly quotes if you have the option "Use smart quotes and dashes" ticked in the Keyboard prefpane under the "Text" tab.
I burned an hour or two wondering why my shell script was ignoring the quotes I was putting in (and blowing up grep) until I figured this out.
Happy Hazeling!
--sgp
It turns out that OS X will "correct" straight quotes into curly quotes if you have the option "Use smart quotes and dashes" ticked in the Keyboard prefpane under the "Text" tab.
I burned an hour or two wondering why my shell script was ignoring the quotes I was putting in (and blowing up grep) until I figured this out.
Happy Hazeling!
--sgp