bar: read from stdin (when no param is provided)