I use a lot of ported Linux tools, so I have tar disabled in my TCSTART file, using setdos /i-tar
but tar comes back alive in pipes.
For example:
setdos /i-tar
which tar
tar is an external : C:\Bin\tar.exe
zcat acronyms.tar.Z | tar tv | less
Usage : TAR [A:[[-][+]rhsdaecjot] /A /C /D /F /G /M /O:[-]adegnrstu /P /Q /R /TEST /U /V] tararchive [@file] file...
zcat: stdout: Broken pipe
The usage message is from the built-in tar which should be disabled. By adding the path to the external tar, it works as expected:
zcat acronyms.tar.Z | c:\bin\tar tv | less
-rwSr-Sr-- bgy2a36/tnmusr 23957 2000-05-01 12:27 tmp/acroa.htm
-rwSr-Sr-- bgy2a36/tnmusr 20930 2000-05-01 12:27 tmp/acrob.htm
-rwSr-Sr-- bgy2a36/tnmusr 35369 2000-05-01 12:28 tmp/acroc.htm
-rwSr-Sr-- bgy2a36/tnmusr 21979 2000-05-01 12:28 tmp/acrod.htm
-rwSr-Sr-- bgy2a36/tnmusr 19065 2000-05-01 12:28 tmp/acroe.htm
-rwSr-Sr-- bgy2a36/tnmusr 14880 2000-05-01 12:28 tmp/acrof.htm
-rwSr-Sr-- bgy2a36/tnmusr 8541 2000-05-01 12:28 tmp/acrog.htm
-rwSr-Sr-- bgy2a36/tnmusr 7887 2000-05-01 12:30 tmp/acroh.htm
-rwSr-Sr-- bgy2a36/tnmusr 19939 2000-05-01 12:31 tmp/acroi.htm
-rwSr-Sr-- bgy2a36/tnmusr 4604 2000-05-01 12:31 tmp/acroj.htm
-rwSr-Sr-- bgy2a36/tnmusr 4532 2000-05-01 12:31 tmp/acrok.htm
-rwSr-Sr-- bgy2a36/tnmusr 14440 2000-05-01 12:31 tmp/acrol.htm
-rwSr-Sr-- bgy2a36/tnmusr 22405 2000-05-01 12:32 tmp/acrom.htm
I'm running TCC version 20.11.40 on Windows 10
but tar comes back alive in pipes.
For example:
setdos /i-tar
which tar
tar is an external : C:\Bin\tar.exe
zcat acronyms.tar.Z | tar tv | less
Usage : TAR [A:[[-][+]rhsdaecjot] /A /C /D /F /G /M /O:[-]adegnrstu /P /Q /R /TEST /U /V] tararchive [@file] file...
zcat: stdout: Broken pipe
The usage message is from the built-in tar which should be disabled. By adding the path to the external tar, it works as expected:
zcat acronyms.tar.Z | c:\bin\tar tv | less
-rwSr-Sr-- bgy2a36/tnmusr 23957 2000-05-01 12:27 tmp/acroa.htm
-rwSr-Sr-- bgy2a36/tnmusr 20930 2000-05-01 12:27 tmp/acrob.htm
-rwSr-Sr-- bgy2a36/tnmusr 35369 2000-05-01 12:28 tmp/acroc.htm
-rwSr-Sr-- bgy2a36/tnmusr 21979 2000-05-01 12:28 tmp/acrod.htm
-rwSr-Sr-- bgy2a36/tnmusr 19065 2000-05-01 12:28 tmp/acroe.htm
-rwSr-Sr-- bgy2a36/tnmusr 14880 2000-05-01 12:28 tmp/acrof.htm
-rwSr-Sr-- bgy2a36/tnmusr 8541 2000-05-01 12:28 tmp/acrog.htm
-rwSr-Sr-- bgy2a36/tnmusr 7887 2000-05-01 12:30 tmp/acroh.htm
-rwSr-Sr-- bgy2a36/tnmusr 19939 2000-05-01 12:31 tmp/acroi.htm
-rwSr-Sr-- bgy2a36/tnmusr 4604 2000-05-01 12:31 tmp/acroj.htm
-rwSr-Sr-- bgy2a36/tnmusr 4532 2000-05-01 12:31 tmp/acrok.htm
-rwSr-Sr-- bgy2a36/tnmusr 14440 2000-05-01 12:31 tmp/acrol.htm
-rwSr-Sr-- bgy2a36/tnmusr 22405 2000-05-01 12:32 tmp/acrom.htm
I'm running TCC version 20.11.40 on Windows 10