"Here-String" redirection not working

TCC 10.00.67 Windows XP [Version 5.1.2600]
TCC Build 67 Windows XP Build 2600 Service Pack 3

When I try to use the "Here-String" redirection syntax, I get an error such
as the following:

C:\...\TCMD10>more <<< This is a test.
TCC: (Sys) The parameter is incorrect.
"C:\DOCUME~1\Howard\LOCALS~1\Temp\Her1E.tmp"
C:\...\TCMD10>

After receiving the error, I can see that the temporary file has been
created correctly, but for some reason TCC can't read it back. I have tried
eliminating all aliases, TCSTART and TCMD.INI and I get the same results.
It doesn't matter whether TCC is running standalone or inside TCMD.

--
Howard
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Howard Goldstein wrote:

> TCC 10.00.67 Windows XP [Version 5.1.2600]
> TCC Build 67 Windows XP Build 2600 Service Pack 3
>
> When I try to use the "Here-String" redirection syntax, I get an error such
> as the following:
>
> C:\...\TCMD10>more <<< This is a test.
> TCC: (Sys) The parameter is incorrect.
> "C:\DOCUME~1\Howard\LOCALS~1\Temp\Her1E.tmp"
> C:\...\TCMD10>
>
> After receiving the error, I can see that the temporary file has been
> created correctly, but for some reason TCC can't read it back. I have tried
> eliminating all aliases, TCSTART and TCMD.INI and I get the same results.
> It doesn't matter whether TCC is running standalone or inside TCMD.

Not reproducible here with Vista or Server 2008. I'll fire up an XP
system to try.

Rex Conn
JP Software
 
May 29, 2008
571
4
Groton, CT
TCC 10.00.67 Windows XP [Version 5.1.2600]
TCC Build 67 Windows XP Build 2600 Service Pack 3

When I try to use the "Here-String" redirection syntax, I get an error such
as the following:

C:\...\TCMD10>more <<< This is a test.
TCC: (Sys) The parameter is incorrect.
"C:\DOCUME~1\Howard\LOCALS~1\Temp\Her1E.tmp"
C:\...\TCMD10>

After receiving the error, I can see that the temporary file has been
created correctly, but for some reason TCC can't read it back. I have tried
eliminating all aliases, TCSTART and TCMD.INI and I get the same results.
It doesn't matter whether TCC is running standalone or inside TCMD.

--
Howard

Repeatable here, same versions of everything mentioned.

Code:
> more <<< This is a test.
TCC: (Sys) The parameter is incorrect.
 "C:\DOCUME~1\DCantor\LOCALS~1\Temp\Her21D0.tmp"
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
Re: &quot;Here-String&quot; redirection not working

Repeatable here, same versions of everything mentioned.

Code:
TCC  10.00.67   Windows XP [Version 5.1.2600]
TCC Build 67   Windows XP Build 2600  Service Pack 3
Registered to Charles Dye - 5 System License
 
C:\>list <<< This is an internal command.
TCC: (Sys) The parameter is incorrect.
 "C:\DOCUME~1\Charles\LOCALS~1\Temp\Her24.tmp"
 
C:\>
 

dim

Dimitry Andric
May 31, 2008
205
1
Netherlands
On 2009-04-28 04:37, Charles Dye wrote:

> C:\>list <<< This is an internal command.
> TCC: (Sys) The parameter is incorrect.
> "C:\DOCUME~1\Charles\LOCALS~1\Temp\Her24.tmp"

Same here on XP64:

D:\>echo %TEMP% %TMP% %TMPDIR%
D:\Tmp D:\Tmp D:\Tmp

D:\>type <<< __EOF__
TCC: (Sys) The parameter is incorrect.
"D:\Tmp\Her5.tmp"
 
Oct 29, 2008
88
0
Confirmed here on XP, Server 2003 (in Virtual PC), and Windows 7 build 7000 (VPC). Confirmed to not be a problem in Vista (VPC) and Server 2008 (VPC).
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Here-Document on new Install Support 21
T @replace -- what is wrong here Support 2
nikbackm Switch Case and here-document redirection Support 2
J Vers. 18 Here doc redirection broken? Support 4
B Newbie here, I have a question. Support 4
M What's going on here????? Support 6
A Here document Support 3
M Simply put, Help! (I can't figure out what's going on here.) Support 6
M What am I doing wrong here? Support 2
Mordachai TCMD Prompt Here?!@ Support 14
K_Meinhard Fixed ? TCMD 14.02 doesn't start here Support 4
vefatica What's wrong here? Support 2
vefatica What's happening here? Support 3
Charles Dye Strange output, here-doc redirection, TYPE, //UnicodeOutput=Yes Support 6
CWBillow TCMD prompt here only opens to root Support 6
M open Take Command here right-click? Support 2
M TCC Prompt Here Colors Support 0
E Single instance/TCMD Here problem Support 7
R Start Prompt Here? Support 9
vefatica What's happening here? Support 9
P Inserting string into a variable. Support 3
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
H Behavior change re piping a string to a Java program Support 1
C email[string] function Support 10
D Finding a string position in a larger string Support 2
MikeBaas How to...extract a string from a .json-file? Support 10
D Faster string search Support 8
D btm file command line augments comparing for string or math. Support 12
B How can TCC make an output as a part of command string Support 2
vefatica DO /L, where did my string go? Support 6
Alpengreis A leading withespace in Hash-String is not included? Support 1
T TPipe: Replacing String with Double Quotes Support 3
J WAD utf8decode string only results in ? chars Support 2
scooter_de How to? How to split the a string? Support 4
C custom string compare? Support 8
C Best way to validate a string is a YYYYMMDD Support 7
Phileosophos Documentation TPIPE /string type code confusion Support 4
vefatica WAD "tokens=*" and literal string Support 4
vefatica Back-refs in TPIPE's /replace's replacement string? Support 2
vefatica @B64ENCODE[s,string]? Support 8
vefatica Random access to the characters in a string? Support 4
vefatica @WORD[], quoted string? Support 8
C Can't remove leading quote from a string Support 2
vefatica Redirection and memory leak? Support 3
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
N multiple command alias and redirection Support 0
M Piping and redirection: CON: Support 5
J WAD Output redirection in tcexit looses data Support 31
vefatica Redirection vs. piping? Support 4
I "IF" command in a variable does not expand redirection variable name Support 0

Similar threads