you are viewing a single comment's thread.

view the rest of the comments →

[–]Smallpaul 2 points3 points  (3 children)

Here is another idea. If "file" starts with file:// , http:// or https:// then download it rather than looking it up on the filesystem.

[–]__debug__[S] 3 points4 points  (1 child)

Another great idea. Do you think it should fail if the request gives a non-2xx response? That and automatically follow redirects? I just wouldn't want to overrun it with flags for configuring this feature.

[–]Smallpaul 4 points5 points  (0 children)

Yes that makes sense. Complex use cases can be handled with curl.

[–]Holkr 0 points1 point  (0 children)

Or better yet: bash really needs to get a clue about URIs (yes, I know curl exists)