[TxMt] CocoaDialog stalls with stdin
Allan Odgaard
throw-away-1 at macromates.com
Thu Mar 30 20:55:09 UTC 2006
On 30/3/2006, at 22:39, Quinn Comendant wrote:
> Yep, that works great. But I had to add a "cat - | " to the
> beginning to
> pass stdin. Here is the finished command:
>
> cat - | {
> if [ -f /tmp/tm_saved_regex ]; then
> REGEX="`cat /tmp/tm_saved_regex`";
Here’s a little trick I rarely gets to show off:
REGEX="$(< /tmp/tm_saved_regex)"
Syntactically not that much saved, but a process less to launch :)
More information about the textmate
mailing list