Wouldn't the above add the EOF to descriptors if the input ends with a comma?