{"push_id":963702704,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"639476b75f192788663349f65981030f79be08b1","before":"5e21d8fe29c0c17bc32a2b03a3be7073b9d49f47","commits":[{"sha":"639476b75f192788663349f65981030f79be08b1","author":{"email":"f39a6777edae5454dc0189bd00918387497b4b81@vidal.fr","name":"edesars"},"message":"Fix incorrect file descriptor usage.\n\nWhen reading from a file, there is no need to duplicate\nfd0. Issuing exec 3<test will allow one to read from fd3,\nusing command \"read something <&3\" before closing it using\nexec 3<&-.\n\nOn the contrary when writing to a file, one must be duplicate\nfd1 since closing fd1 (in a similar way than precedently)\nwill cause subsequent IO / Error. To put in a nutshell,\nthe command sequence to use is:\nexec 3>&1 1>somefile\n\necho \"Something to print in file\"\necho \"Something to print on stdout\" >&3\n\nexec 1>&3 3>&-\n\n (reading && writing)","distinct":true,"url":"https://api.github.com/repos/emmanwl/cd2mpc/commits/639476b75f192788663349f65981030f79be08b1"}]}