5 ms·
From the man page: > If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously. Although other imp
by benchaney 8y ago
From the man page:
> If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
Although other implementations might be different of course.
- JdeBP 8y agoIt's not a notion that I carried into my implementation of redo, for example. % redo --jobs redo: ERROR: jobs: missing option argument %
- flukus 8y agoWhat made you go with that rather than trying to pick a sensible default like the number of cores available? Or was it just a general goal to require explicitness?
- JdeBP 8y agoIt was simplicity, of design, implementation, use, and indeed explanation. There's only one default, the default if the --jobs option is not used; rather than there being two defaults, one for not having the option and another for having the option but not the option argument. More generally, I try to avoid optional arguments to command options, in line with the guideline in the Single Unix Specification. (I actually picked such ideas up many years ago, before the first POSIX specification, from a book by Eric Foxley titled Unix for Super Users, where there was an appendix on command line option syntax.) * http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02 http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_... Of course, if the user wants to use the number of cores available, then xe can work that number out and pass it as an argument; and indeed I have done that very thing in some of the package/make scripts that I have published.