read in subshell