conditional loop update
posix sh input update