Speaking of VIEW

May 20, 2008
11,400
99
Syracuse, NY, USA
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.
upload_2015-8-15_0-38-43.png


upload_2015-8-15_0-40-24.png
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Regarding the above, it's interesting to note that neither the text "Dir2" nor the text "2015-20" appear in the output of that command.
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
Did you forget to use /B for bare?

Or whatever the switches are to not show the header or the footer.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
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.

upload_2015-8-15_12-57-33.png


upload_2015-8-15_12-58-41.png
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
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]
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
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.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
And when that was over, these were in my history:
Code:
Volume in drive V is DATA  Serial number is c007:d3e4
Directory of  V:\*
2015-08-15  12:46  <DIR>  .
2015-08-15  12:46  <DIR>  ..
-03  14:21  42  filelist
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Other crazy things happen ion TCMD with pipes ... things that don't happen in consoles. Here's the partial result of "dir | cls"
Code:
v:\> v:\> TCC: (Sys) The parameter is incorrect.
 "in"

v:\> TCC: Unknown command "Directory"

v:\> v:\> TCC: (Sys) The system cannot find the path specified.
 "V:\"

v:\> TCC: (Sys) The system cannot find the path specified.
 "V:\"

v:\> TCC: (Sys) Access is denied.
 "V:\empty"

v:\> TCC: (Sys) Access is denied.
 "V:\foo"

v:\> TCC: (Sys) Access is denied.
 "V:\ProgramData"

v:\> TCC: (Sys) Access is denied.
 "V:\prospero"

v:\> TCC: (Sys) Access is denied.
 "V:\test"

v:\> TCC: Unknown command "2015-08-14"

v:\> TCC: Unknown command "2014-11-17"

v:\> TCC: Unknown command "2015-05-18"

SNIP
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Other crazy things happen ion TCMD with pipes ... things that don't happen in consoles. Here's the partial result of "dir | cls"

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.
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
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).

Code:
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

Is my entire TCStart.btm
 
May 20, 2008
11,400
99
Syracuse, NY, USA
OK, the culprit was this line in TCSTART.
Code:
IF %_TCTAB == 1 TRANSIENT OFF
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.
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
_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).

So both are valid.
 
Similar threads
Thread starter Title Forum Replies Date
T VIEW only works from command line Support 14
vefatica VIEW ... remember the UTF-8 setting? Support 0
Alpengreis Documentation Minor issue in help file for view /E Support 1
vefatica VIEW wrap searches? Support 2
R Documentation Help Nit > bdebugger View Menu Support 0
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
Joe Caverly Pipe into VIEW and search Support 12
vefatica VIEW ... CommandPrompt ... TC21 ... unregistered Support 6
vefatica Start VIEW with the toolbar showing? Support 5
rps How to? Piping to View /gb Support 1
vefatica VIEW ... remember no toolbar Support 0
E Fixed View command broken in version 21.0 build 22 Support 9
vefatica File Explorer ... remember view settings? Support 5
vefatica "View" settings still not remembered Support 10
vefatica TCMD ... remember View settings? Support 7
C View Print Wrap - please break at whitespace Support 3
C VIEW PRINT /Wrap doesn't work Support 0
C VIEW PRINT - Documentation corrected - Font size Support 8
C WAD VIEW print multiple files - switches fail Support 10
MickeyF TCC v16 crashes when I hit F1 to view help Support 9
R V19 - 'V' and 'View" Support 6
cgunhouse Crash on View/Folder Support 1
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
nikbackm VIEW broken in v18 + Windows 10 Support 8
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
D Fixed Cut and paste in TC's file/folder view does not remove file Support 17
E View (internal command) does nothing now Support 3
vefatica VIEW and chars in 128-255 Support 4
MickeyF where to view the latest JPSoft newsletter? Support 0
Joe Caverly VIEW window in a TCC tab window problems Support 5
vefatica Fixed No text in List View! Support 4
D Folder/List view changed in v15 Support 8
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
nikbackm Fixed v15: VIEW - encoding and CSV issues Support 9
T view command not working Support 5
S TCMD No List-View with Libraries? Support 5
M Sync folder/list view with command window? Support 2
C Fixed Starting editor from VIEW Support 9
J VIEW doesn't work again Support 16
A How to? Invoke View Clipboard from command line Support 8
S Fixed View and V do not work in new 13.04.52 x64 installation Support 11
jwblyth How to? Help will not Load in View (File Viewer)?? Support 4
M Folder View Freezing Support 10
Frank is the search-function in VIEW working? Support 2
H VIEW not "screen reader friendly: Support 7
J VIEW crash on redirected input and numbered bookmarks Support 6
gschizas View uses Windows-1252 codepage instead of System codepage Support 4
D view in tab and focus follows mouse Support 10
D View Help Keyboard Support 1
rconn 13.0.18 Test build for VIEW problem Support 23

Similar threads