mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-26 01:06:01 +03:00
[GH-ISSUE #49] Check whether stderr is a tty if writing to stderr #45
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xmo-odoo on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/49
While writing up #48 I found a bit of an odd behaviour in tunnelto: although it apparently writes its output to
stderr, it doesn't check whetherstderris a tty, instead it checks stdout:will write a bunch of ANSI escape codes to
test.txt, butwill not.
So when writing a script around tunnelto, despite only reading from stderr one has to redirect
stdoutin order to avoid an output full of ANSI.