Baffling Behavior With TPIPE

Jun 2, 2008
Newton, MA
I am running a TPIPE command with the following argument that attempts to replace the text "{{4}}" in a file with an email address:


The email address comes out "". It is as if "@domain" is being treated as a function that returns nothing. Can someone explain what is happening and why -- and how I can get this to work.

-- Jay Sage
May 20, 2008
Syracuse, NY, USA
Doubling the '@' works. I'm not sure why it's necessary.

v:\> echo {{4}} | tpipe /replace=0,0,0,0,0,0,0,0,0,{{4}},
Jun 2, 2008
Newton, MA
In the meantime, by trial and error, I also discovered that doubling '@' solves the problem. However, my file contains replacement strings with '@', and it's non-trivial to edit the file.

Any idea how to turn off the processing of macros?
Jun 2, 2008
Newton, MA
This all arose because of an issue with my MAILMERGE.BTM program, which generates customized batches of messages using SENDHTML and TPIPE. I had never before tried to merge an email address, and the program choked. I've now added extra code in the program to double any '@' characters in a token. That seems to have solved the problem (but who knows what others it might end up creating -- it would still be better if I could turn off macros in TPIPE).
Similar threads
Thread starter Title Forum Replies Date
H @XMLNODES - New behavior? Support 3
Jesse Heines Strange Line Wrapping Behavior Support 14
H Behavior change re piping a string to a Java program Support 1
D Pasting Unicode data has different behavior on TCC and CMD Support 2
P "Set" command behavior - a bug? Support 3
P LOG command behavior Support 3
I Puzzling Behavior of TDRV and DEL Support 2
N Fixed Strange dir behavior Support 6
A Inconsistent @WINPOS // ACTIVATE /POS= behavior Support 0
P Strange mouse behavior with list Support 2
R Find in screen buffer - find next behavior Support 0
D v20 code page behavior changes Support 2
D Strange DO behavior with /O Support 5
Jay Sage Change in Behavior of Activate Command Support 4
deleyd Fixed Behavior different than CMD Support 1
jwiede Difference in "FOR /F" behavior (?) Support 1
R Difference in behavior of RMDIR vs. CMD.EXE? Support 5
D Fixed Change in behavior of variable expansion between 16 and 17 Support 3
D Unexpected behavior Support 8
D Bash-like Esc->Backspace behavior Support 4
C ZIP behavior Support 5
Charles Dye Odd behavior after using OPTION "Advanced" tab Support 2
C odd behavior of "dir" Support 0
M How to? Work around an unexpected and very inconvenient behavior of TCC... Support 26
A expected behavior of move /sx Support 14
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
S Inexplicable behavior difference in nearly identical shortcuts Support 6
Peter Bratton @ping behavior change Support 2
vefatica SHORTCUT behavior (Win7) Support 3
M A question about new behavior that’s a minor irritation… Support 16
M Strange behavior... Support 2
S MSGBOX - inconsistent behavior Support 1
vefatica @REGEX: behavior vs. documentation Support 2
vefatica Strange behavior reloading SHRALIAS sav files. Support 1
S Strange CHKDSK behavior Support 6
Fross Odd IF behavior Support 3
M (Somewhat unbelievable) Do While Behavior/Question Support 1
S RECYCLE /P - unexpected behavior Support 0
J Odd OPTION behavior Support 1
samintz How to? TPIPE /simple=61 Support 6
R Bug TPIPE's pdf to text conversions don't work Support 2
Kachupp How to? tpipe Support 4
H TPIPE /simple=4 Support 12
D TPIPE produces unwanted logs. Support 1
Kachupp How to? tpipe Support 8
vefatica Documentation TPIPE, /perl, DotMatchesNewLines Support 1
vefatica Stop TPIPE /EOL removing bad EOLs (and TPIPE changine EOLs)? Support 2
vefatica TPIPE in an alias? Support 2
C How to? TPIPE ?'s Support 2
H History and TPipe Oddness Support 3

Similar threads