"fetch -o - url://file/name" generally retrieves the URL to stdout. However, in the case of "file:/" URLs, fetch(1) creates a file called "-" in the current directory, containing the file contents. How-To-Repeat: fetch -o - /etc/hosts cat ./-
State Changed From-To: open->suspended awaiting committer
bmah@ca.sandia.gov writes: > "fetch -o - url://file/name" generally retrieves the URL to stdout. > However, in the case of "file:/" URLs, fetch(1) creates a file called > "-" in the current directory, containing the file contents. This is a result of fetch(1) trying to be smart instead of generic, and will go away when I rewrite fetch(1) to use the fetch(3) library. BTW Jordan, still no feedback from you... should I go ahead and import libfetch into the tree? I'm halfway through rewriting the FTP bits, if I get my lazy arse in gear I might finish that this weekend; then I can start hacking away on fetch(1)... DES -- Dag-Erling Smørgrav - smoergrd@oslo.geco-prakla.slb.com
Responsible Changed From-To: freebsd-bugs->des I'll look into it (since I'm already working on fetch...)
State Changed From-To: suspended->closed Better fix applied to -current and -stable.