[TxMt] Bug: Characters deleted following '$' when command inserts as snippet

Andy Kish agkish at gmail.com
Sat Aug 5 03:23:11 UTC 2006


First, I apologize if this is a duplicate. The mailing list  
subscription was being incredibly slow, so I don't know if my first  
message was sent.

System is OS X 10.4.7. TM version 1.5.3 (1200). Same error occurs on  
another system with unknown information (we corresponded over email...).

To reproduce:
1. Create a new command. Enter a short, non-shell script printing out  
'$' at some point.
Ex:
#!/usr/bin/env python
print "test: $SIG{}"
2. Make sure the output mode is set to "Insert as Snippet".
3. Run command in a document.

Expected result: Document shows the result of the program. e.g.  
"test: $SIG{}"

Actual result: Document shows result with characters removed  
following and including '$'. e.g. "test: {}" Note that the removal  
stopped at what is generally a "special" character.

Comments:
The expected result occurs when the output method is changed to  
"Insert as Text" or "Replace selected Text" (i.e. when the text in  
not further manipulated in any way, for indentation and the like).  
Similarly, the expected result occurs when '$' is escaped. Entering  
the line 'echo "test: $SIG{}"' at the command prompt returns "test:  
{}" which seems to indicate that the text mangling is resulting from  
being passed through the shell.

Andy Kish



More information about the textmate mailing list