Project

General

Profile

Actions

Bug #745

closed

subshell redirections which read stdin become unstoppable, interrupts hit the wrong process

Added by Rich Lowe over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2011-02-21
Due date:
2011-09-14
% Done:

100%

Estimated time:
8.00 h
Difficulty:
Medium
Tags:
bash

Description

sellout:~> ssh -t metropolis bash
metropolis:~$ cat <(cat /dev/stdin) | cat
^CConnection to metropolis closed.
zsh: exit 255   ssh -t metropolis bash
sellout:~>

A ^D to attempt to get an EOF to the inner-most cat fails too, and I suspect it shouldn't.

The actual command I used was

metropolis:~$ comm -13 <(sed -e 's,root_i386/,,') wsdiff.log | wc -l

With which I now find that, without a wsdiff.log, may or may not screw up further input to a shell which may or may not be at the top level (I ended up with the shell only echoing every other character typed, but I'm not sure how/why).

Actions

Also available in: Atom PDF