Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: virtual files?



On Apr 22, 12:14am, Emanuel Berg wrote:
}
}     read-test () {
}         local url=http://data.bls.gov/cgi-bin/cpicalc.pl
}         local result
}         wget -q $url -O - | read -d '' result
}         echo $result
}     }

You probably want
  print -r -- $result
to avoid any leading hyphens or other misc. sequences in $result from
being interpreted by echo.

} (I suppose the "delimiter" is EOF if set to nothing.)

Effectively yes.



Messages sorted by: Reverse Date, Date, Thread, Author