Jonoans / pe

0 stars 0 forks source link

CTRL-D When Program Expects Command Crashes Program #4

Open Jonoans opened 11 months ago

Jonoans commented 11 months ago

Hitting CTRL-D on Mac when program expects a command crashes the program

image.png

nus-se-bot commented 10 months ago

Team's Response

Assuming this is equivalent to cntrl c on windows ,force quitting the programme is not a potential bug, has cleared this with prof before, attached below is a screenshot for reference

image.png

image.png

Items for the Tester to Verify

:question: Issue response

Team chose [response.NotInScope]

Reason for disagreement: Hmm, I would say though that CTRL+D is not exactly the same as CTRL+C.

CTRL+C sends an interrupt signal to the Java VM, thus, the program exits.

However, CTRL+D sends an EOF to the stdin which is something the application would need to handle, which isn't the same as sending a termination signal.