The one command below results in all the output seen in the tab. Below that is the beginning of VIEW's display; note that some headers and blank lines are missing. All happens correctly if I do the same thing in a console.
Here's a complete and slightly more concise one. First, in the TCMD tab, the (correct) contents on v:\test\, then the troublesome command (piped through VIEW) and its in-tab consequences. Second, the entire output shown by VIEW.
Sorry - I don't use View so I thought it was wanting a filelist, a file per line, to show. Not whatever STDIN was with the pipe.
Here is my errors with VIEW
Code:
TCC 18.00.30 x64 Windows 7 [Version 6.1.7601]
Copyright 2015 JP Software Inc. All Rights Reserved
Registered to Charles S. Galloway - 5 System License
FixNames v0.28.0 loaded.
[C:\Program Files\JPSoft\TCMD18_x64]dir | view
TCC: (Sys) C:\TCMD\TCEXIT.btm [3] The system cannot find the file specified.
"fixnames"
TCC: C:\TCMD\TCEXIT.btm [5] No aliases defined
[C:\Program Files\JPSoft\TCMD18_x64]
Not reproducible here (either Vince's or Charles's problems).
Charles - your problem is definitely with your TCSTART (which is trying to do things it shouldn't when piping to an internal command in a child shell).
Vince, try it without your TCSTART / aliases / plugins.
None of that is reproducible on any of my systems -- which isn't surprising, since there is absolutely no difference in pipe behavior when running in a console vs. running in TCMD. You've got a configuration difference between your standalone TCC processes & your TCMD tab windows.
If this was a TCMD / TCC issue, I'd already have thousands of complaints about it. I pipe in TCMD tab windows many times a day, as do most other TCMD users.
Not reproducible here (either Vince's or Charles's problems).
Charles - your problem is definitely with your TCSTART (which is trying to do things it shouldn't when piping to an internal command in a child shell).
echo %_PIPE, %_TRANSIENT
PAUSE
IFF %_PIPE EQ 1 THEN
QUIT
ENDIFF
IFF %_TRANSIENT EQ 1 THEN
QUIT
ENDIFF
alias unknown_cmd C:\Z_UserFiles\JPSoft\BTM_000\UC.BTM
plugin /l c:\TCMD\Plugins\fixnames\FixNames-x64.dll
iff %@index["%cmdcmdline",/c type TP] gt 0 .and. %_pipe eq 1 then
rem TPIPE pipe process
if %@regex[^TP\d+\.tmp$,%@word[-0,%cmdcmdline]] eq 1 quit
endiff
alias /r C:\TCMD\alias.txt
window max
That's a recent addition and isn't in the TCSTART of any previous versions. I don't recall what I might have been testing, or what other reason I might have had for putting it there. I also don't understand exactly how it screwed things up.
_TRANSIENT returns 1 if the current shell is transient (started with a /C, see Command Line Options for details), or 0 otherwise
TRANSIENT allows you to change the shell's transient mode (i.e., whether it was started with a /C), so that you can make a transient session permanent (or vice versa).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.