bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CTRL-C and < /dev/null


From: Nobuyuki Tsuchimura
Subject: CTRL-C and < /dev/null
Date: Mon, 29 Jan 2007 19:32:06 +0900

  Hi 'ed' maintainers,

(1)
ed-0.3 and ed-0.4 doesn't exit
even if I send CTRL-C into stdin.
(2)
ed-0.3 and ed-0.4 doesn't exit
even if I redirect its stdin to /dev/null.
In this case, I have no way to quit
except for pressing CTRL-Z.

ed-0.2 exits in both cases.
Is it a right behaver?

Sample operation:
(1)
bash-3.00$ ./ed
      <- CTRL-C, but nothing happen
Q     <- exits, OK
bash-3.00$

(2)
bash-3.00$ ./ed < /dev/null
      <- CTRL-C, but nothing happen
q     <- nothing happen
Q     <- nothing happen
      <- CTRL-Z
[1]+  Stopped                 ./ed </dev/null
bash-3.00$ kill %1
bash-3.00$ kill %1
bash: kill: (24667) - No such process
[1]+  Terminated              ./ed </dev/null
bash-3.00$

-- Best regards,
Nobuyuki Tsuchimura




reply via email to

[Prev in Thread] Current Thread [Next in Thread]