{"action":"created","issue":{"url":"https://api.github.com/repos/geoffmcl/test-console/issues/2","repository_url":"https://api.github.com/repos/geoffmcl/test-console","labels_url":"https://api.github.com/repos/geoffmcl/test-console/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/geoffmcl/test-console/issues/2/comments","events_url":"https://api.github.com/repos/geoffmcl/test-console/issues/2/events","html_url":"https://github.com/geoffmcl/test-console/issues/2","id":159773131,"number":2,"title":"When test-con2 is run in a console, it should act more like a console app!","user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geoffmcl/test-console/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-06-11T13:18:16Z","updated_at":"2016-06-13T15:55:41Z","closed_at":null,"body":"At present certain redirections are correctly handled when SUBSYSTEM:windows is used, for `test-con2`, and it is run in a console :-\r\n\r\n````\r\n> test-con2 > temp1.txt 2>&1\r\n````\r\n\r\nThis works fine. That is **all** the `stdout` and `stderr` text is found in the `temp1.txt` file... good!\r\n\r\nBut 3 other forms are not fully correct - messages are lost...\r\n\r\n````\r\n> test-con2 > temp2.txt\r\n> test-con2 2> temp3.txt\r\n> test-con2 \r\n````\r\n\r\nWhile in the first two, the appropriate `stdout` in the first, and `stderr` in the second, correctly arrive in the file, **BUT** in all 3 cases, **no** output is seen in the console, as would happen if it was a subsystem:console app...\r\n\r\nCan this be improved?\r\n"},"comment":{"url":"https://api.github.com/repos/geoffmcl/test-console/issues/comments/225624745","html_url":"https://github.com/geoffmcl/test-console/issues/2#issuecomment-225624745","issue_url":"https://api.github.com/repos/geoffmcl/test-console/issues/2","id":225624745,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T15:55:41Z","updated_at":"2016-06-13T15:55:41Z","body":"When I read `start /?` the first line says -\r\n\r\nStarts a separate window to run a specificed program or command.\r\n\r\nNow, if that program is subsystem:windows then of \r\ncourse there is no visible window created... it does \r\nnot ask for one... so no console window is created...\r\nthe program can of course create all the windows it \r\nwants to display...\r\n\r\nIs there a new `cmd.exe` loaded to do this... maybe not...\r\nhopefully not...\r\n\r\nWe are already running inside a command processor... it \r\ncould just create a new environment... invoke, in this \r\ncase the exe loader, passing on the program, and wait \r\nfor the exit... nothing else to do... sort of `lock` up...\r\n\r\nSimply I do not want to pass on to my test-con2 immense \r\nusers base, millions..., that this program is best run \r\nwith `start /WAIT test-con2`... because...\r\n\r\nSure the only difference is -\r\n\r\n````\r\n1: test-con2 [options] redir\r\n2: start /WAIT test-con2 [options] redir\r\n````\r\n\r\nThat's **all** I am trying to say - I want it run \r\nas the first, **not** as the second... however \r\nthat is all managed, handled, seen...\r\n\r\nWell, it presently does all that... and it presently \r\nemulates its cousin, subsystem:console quite well...\r\n\r\nExcept for a relatively minor issue, namely displaying \r\nthe prompt on exit, it does fine...\r\n\r\nYes, one way around this is the use the `start` \r\ncommand first... not my choice, but works...\r\n\r\nBut I do use the `start` command, in quite a number \r\nof scripts, usually to detach the program from \r\nthe console where I am running say a build... I \r\nwant it loaded in a separate window, like MSVC, so \r\nI can have my prompt back...\r\n\r\nAnd there are other cases where I prefer, that the \r\nprogram I invoke should sort of 'lock' this console...\r\nthat is no command prompted printed until I exit \r\nthat program...\r\n\r\nSo really think I tried that, and verified what I \r\nthink is happening... and choose `no`, not in this \r\ncase...\r\n\r\nMaybe a witnesses only see what they want to see...\r\n"}}
{"actor":{"display_login":"geoffmcl"}}