Conversation
|
Personally I'm not a big fan of the name.
How about something like |
|
Some people (on Mastodon) asked about reasons for this new option. Discarding the output is interestingly a fairly common thing to do for curl users.
|
|
Maybe sticking with the existing root of
|
The concept of NULL is also prevalent within Windows, for example PowerShell has an identicallly named function Out-Null. Personally I prefer |
|
I have no great beef into the option name. I like to have the prefix |
|
I like the idea. I think |
|
Bikeshedding time! I figured there must be lots of programs out there that have options that do something similar so maybe there's a "standard" name that could be used. I ended up not finding all that many, though, probably because suppressing the primary output of a program isn't that generally useful unless there is a side effect (e.g. files written to disk) or some other out of band means to get the result of running the program (e.g. stderr or exit code). These are a few Linux programs I found along with their options to suppress normal output (where the normal output is the primary output of the program and not just something like status or progress messages):
The Art of Unix Programming says using I like |
|
|
The only little nit about this is that we only allow a |
My thoughts as well. Currently But we can break all the rules and roam the command line space free! |
|
@icing: how about |
if |
Well, we get to decided that now, don't we? 😄 In my head, the command line: The alternative, which I think is what you have implemented now, is that |
Ok, that was not my intention. It should only apply to one url, I think. Like |
|
Why not focus on the effect rather than the mechanism?
|
|
I like to be able to name --etag-compare and --etag-save with names derived |
|
Howdy, I do a LOT of website scrubbing and am usually blocked by overly aggressive authentication... even with the options currently available. Web servers can get a TON of information about the "originator" of requests and can, with minimal effort, tell if the requestor is a person or a crawler. I think this could be dealt with by curl in "pretend to be a person" mode. Will this new quiet/silent/null option help with this? This seems to be, IMO, a JavaScript "problem". Would this option help me? George... |
|
On 7/4/25 12:36, grgoffe wrote:
effort, tell if the requestor is a person or a crawler. I think this could be dealt with by curl in "pretend to be a person" mode. Will this new quiet/silent/null
...
Are you proposing that Curl make honoring "robots.txt" optional?
…--
gil
|
|
Paul, Hmmmmm... Good point. I hadn't thought of that. Let me think on the idea that "pretending to be a human" while obeying the robots.txt directive and it's ramifications. THANKS, George... |
What would the effect of inverting it be with the new behavior of acting per-url? Would it be the same as telling the second url to go to stdout? And if there's only a single url would it just revert the previous option? I'm not sure how invertible per-url boolean options should work or do work now, but it might be something to think about. |
The choice of |
Add a new commandline option --out-null that discards all response bytes into the void. Replaces non-portable use of '-o /dev/null' with more efficiency. Feature earliest for 8.16.0
Add test755 to check that --out-null only applies to a singel url
|
Would it be sensible to extend "--out-null", to auto-apply for every unspecified out destination? I find it wieldy for alike situations: Adding "--out-null-all" maybe unnecessary? (redundant) Or maybe " |
|
|
Yeah it does the same thing |
Add a new commandline option --out-null that discards all response bytes into the void. Replaces non-portable use of '-o /dev/null' with more efficiency.
Feature earliest for 8.16.0
Update: fixed it to work "per url", as
--outputdoes. Added test755 to check this behaviour.