Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tlrobinson
· 9y ago · 0 comments
Would it be possible to write a "confirm" tool that writes stdin to stderr then waits for the user to press enter before writing to stdout?
curl ... | confirm | apt-key ...
Of course there's no such thing as a stderr input stream, so I'm not sure this would even be possible.
Comments
[–]
adventureadmin
9y ago
Yes, but the proper thing to do is never curl to your terminal, especially a privileged terminal. And really, you shouldn't paste either.
[–]
MatthewWilkes
9y ago
That would only help if it were possible for a user to visually identify if a stream is not malicious.