cat(1) now only uses "traditional" mode if both stdin and stdout isatty(2).
This commit is contained in:
parent
ac7e55ffbd
commit
3c12de760f
|
@ -57,7 +57,7 @@ int main(int argc, char* argv[])
|
|||
return cat(argc, argv);
|
||||
}
|
||||
|
||||
if ( !isatty(0) ) { return docat("<stdin>", 0); }
|
||||
if ( !isatty(0) || !isatty(1) ) { return docat("<stdin>", 0); }
|
||||
|
||||
bool lastwasesc = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue