[PATCH 1/6] cmd: Let WCMD_fgets() work properly when reading from a pipe.