{"action":"created","issue":{"url":"https://api.github.com/repos/kevinlawler/kona/issues/366","labels_url":"https://api.github.com/repos/kevinlawler/kona/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/kevinlawler/kona/issues/366/comments","events_url":"https://api.github.com/repos/kevinlawler/kona/issues/366/events","html_url":"https://github.com/kevinlawler/kona/issues/366","id":94168619,"number":366,"title":"Write error when printing stdin","user":{"login":"kirbyfan64","id":1690697,"avatar_url":"https://avatars.githubusercontent.com/u/1690697?v=3","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kevinlawler/kona/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-09T22:41:17Z","updated_at":"2015-07-16T00:10:02Z","closed_at":null,"body":"Example program:\r\n\r\n```\r\n`0:0:`\"/dev/stdin\"\r\n```\r\n\r\nOutput with K2:\r\n\r\n```\r\nryan@DevPC-LX:~/golf/lcs$ echo | k2 bug.k\r\n\r\n\r\nryan@DevPC-LX:~/golf/lcs$ \r\n```\r\n\r\nOutput with Kona:\r\n\r\n```\r\nryan@DevPC-LX:~/golf/lcs$ echo | k bug.k\r\n\r\nwrite error\r\n`0:0:`\"/dev/stdin\"\r\nat execution instance 1 of \"0:\"\r\n>  ryan@DevPC-LX:~/golf/lcs$ \r\n```\r\n\r\nDang, I feel like a bug magnet sometimes... :O\r\n"},"comment":{"url":"https://api.github.com/repos/kevinlawler/kona/issues/comments/121783506","html_url":"https://github.com/kevinlawler/kona/issues/366#issuecomment-121783506","issue_url":"https://api.github.com/repos/kevinlawler/kona/issues/366","id":121783506,"user":{"login":"tavmem","id":1459367,"avatar_url":"https://avatars.githubusercontent.com/u/1459367?v=3","gravatar_id":"","url":"https://api.github.com/users/tavmem","html_url":"https://github.com/tavmem","followers_url":"https://api.github.com/users/tavmem/followers","following_url":"https://api.github.com/users/tavmem/following{/other_user}","gists_url":"https://api.github.com/users/tavmem/gists{/gist_id}","starred_url":"https://api.github.com/users/tavmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavmem/subscriptions","organizations_url":"https://api.github.com/users/tavmem/orgs","repos_url":"https://api.github.com/users/tavmem/repos","events_url":"https://api.github.com/users/tavmem/events{/privacy}","received_events_url":"https://api.github.com/users/tavmem/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T00:10:02Z","updated_at":"2015-07-16T00:10:02Z","body":"What \"doesn't seem right\" to me is the k2.8 implementation of 0:`\"/dev/stdin\"\r\nIt is not so much that it provides a \"timeout\", but that it imposes a very small window of time for data entry.\r\nUsing k2.8 try to enter the string 135792468:\r\n```\r\n  x:0:`\"/dev/stdin\"\r\n  135792468\r\n135792468\r\n  x\r\n()\r\n```\r\nYou don't have time to do it ... which does not make any sense.\r\n\r\nI much prefer the implemetation that Kona had before this issue was opened.\r\n```\r\n  x:0:`\"/dev/stdin\"\r\nabd\r\n3333333\r\ntrr\r\nyyx\r\n(\"abd\"\r\n \"3333333\"\r\n \"trr\"\r\n \"yyx\")\r\n```\r\nYou have as much time as you want to enter data.\r\nYou can enter as many lines as you wish.\r\nYou terminate entry with Cntl-d.\r\n\r\nI never claimed that the original bug was related to this k2.8/Kona inconsitency.\r\nThe original bug was\r\n```\r\ncat bug.k\r\n`0:0:`\"/dev/stdin\"\r\nryan@DevPC-LX:~/golf/lcs$ echo | k bug.k\r\nwrite error\r\n```\r\nIn looking for simpler syntactic occurrences, I noticed that\r\n```\r\n  \\l bug.k\r\ntype error\r\n```\r\nand that\r\n```\r\n  0:`\"/dev/stdin\"\r\n```\r\nbehaves completely differently in k2.8 than in Kona.\r\n\r\nI was operating under the assumption that Arthur had some reason for the k2.8 implementation of\r\n```\r\n  0:`\"/dev/stdin\"\r\n```\r\nIf there is no justifiable reason, we should go back to the implementation that existed in Kona."}}