nicolas / debian.moreutils (public) (License: GPL-2, GPL-2+, Expat, BSD-2-Clause, Public Domain) (since 2018-09-25) (hash sha1)
Debian packaging of joeyh's moreutils
List of commits:
Subject Hash Author Date (UTC)
parallel: Argument validation 4c46b498f7c42a037f4f00e54f8a6a0197a80c93 Tollef Fog Heen 2009-07-10 12:09:48
parallel: Assume -j 1 if no -j or -l is given 4154bdcaadc1fb1ad2e7cd0f8f887dac5346a0d7 Tollef Fog Heen 2009-07-10 11:54:21
parallel: Implement -l (maxload) and -i (replace {}) e608a0284a84bb37a5a621eae72b0a456ec5484b Tollef Fog Heen 2009-06-30 02:49:07
parallel: Fix typo in usage string 397defef1f5994344d261cda1cfffb1e21d935cc Tollef Fog Heen 2009-06-30 02:28:00
Return non-zero if something goes wrong cde80342f40f2393f5a76974adf595d5aeb2ec52 Tollef Fog Heen 2009-06-30 02:26:16
Compile parallel by default b55a8e3a90e876fe1b80c886e63bb5d9fe0e022a Tollef Fog Heen 2009-06-30 02:25:55
Add initial writeup of parallel tool 0f012c74fcfaea8d661a729fd5cc2ad4f3563115 Tollef Fog Heen 2009-06-30 02:19:07
releasing version 0.35 b729d870341ae06f9a5a945717eb61c1d60a3af5 Joey Hess 2009-05-05 19:19:37
remove unnecessary quotes b08aeb0570bfd28f29a7708ab65f0f09f89e3883 Joey Hess 2009-05-05 19:09:40
isutf8: Reject UTF-8-encoded UTF-16 surrogates. Closes: #525301 (Thanks, Jakub Wilk and liw) a250ae89f37849be1caf204a07d2e4e563503390 Joey Hess 2009-05-05 19:06:34
ifdata: Don't assume that all interface names are 6 characters or less, for instance "wmaster0" is longer. Increase the limit to 20 characters. Closes: #526654 (Thanks, Alan Pope) 0aa82b9e712f62170d7f433b9fb181cdc6a60a92 Joey Hess 2009-05-03 00:41:06
releasing version 0.34 3e03d4c45318bb0978e65850ec7f56bbb210d4f1 Joey Hess 2008-12-11 20:12:53
vipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491 931de139ed875e6c593d0bdb692fccf181da46bb Joey Hess 2008-12-11 20:11:19
releasing version 0.33 6f2bc6bff8786f96265b170249b4cd4bc3e99247 Joey Hess 2008-10-31 21:03:08
Fix zrun breakage introduced last version. Closes: #504129 0815e5fa8d11ea9bd235d536e02e108ab1cecb43 Joey Hess 2008-10-31 21:01:02
changelog 61290da144f6138269f3050388ed18b17038d580 Joey Hess 2008-10-28 02:41:30
Support installing moreutils into prefixes other than /usr 220a73731d4506912e8ec2ecca2e33abdf4e01fe Evan Broder 2008-10-28 01:58:48
Fix pod error in vidir(1). 1e73fbbb25bc43999320b2c9c5679ab0c8f3b528 Joey Hess 2008-10-27 03:51:00
zrun: Can be linked to zsomeprog to run the equivilant of zrun someprog. 9c2bf6a2f6885d4f6373b5a682d10c40c84b4e66 Joey Hess 2008-09-27 22:05:33
typo 39bc764104ad5268b9312a7ff49ff10d7907dd6b Joey Hess 2008-07-09 17:06:26
Commit 4c46b498f7c42a037f4f00e54f8a6a0197a80c93 - parallel: Argument validation
Make sure the arguments passed to -j and -l are numbers and error out
if they are not.
Author: Tollef Fog Heen
Author date (UTC): 2009-07-10 12:09
Committer name: Tollef Fog Heen
Committer date (UTC): 2009-07-10 12:09
Parent(s): 4154bdcaadc1fb1ad2e7cd0f8f887dac5346a0d7
Signing key:
Tree: 773f0c7ead8d1f27233aa1bae7066fe7815695b7
File Lines added Lines deleted
parallel.c 16 2
File parallel.c changed (mode: 100644) (index 597cda2..418dc34)
27 27 #include <sys/time.h> #include <sys/time.h>
28 28 #include <time.h> #include <time.h>
29 29 #include <stdlib.h> #include <stdlib.h>
30 #include <errno.h>
30 31 #include <sys/select.h> #include <sys/select.h>
31 32 #include <sys/types.h> #include <sys/types.h>
32 33 #include <sys/wait.h> #include <sys/wait.h>
 
... ... int main(int argc, char **argv)
91 92 int cidx = 0; int cidx = 0;
92 93 int returncode = 0; int returncode = 0;
93 94 int replace_cb = 0; int replace_cb = 0;
95 char *t;
94 96
95 97 while ((opt = getopt(argc, argv, "+hij:l:")) != -1) { while ((opt = getopt(argc, argv, "+hij:l:")) != -1) {
96 98 switch (opt) { switch (opt) {
 
... ... int main(int argc, char **argv)
101 103 replace_cb = 1; replace_cb = 1;
102 104 break; break;
103 105 case 'j': case 'j':
104 maxjobs = atoi(optarg);
106 errno = 0;
107 maxjobs = strtoul(optarg, &t, 0);
108 if (errno != 0 || (t-optarg) != strlen(optarg)) {
109 fprintf(stderr, "option '%s' is not a number\n",
110 optarg);
111 exit(2);
112 }
105 113 break; break;
106 114 case 'l': case 'l':
107 maxload = atoi(optarg);
115 errno = 0;
116 maxload = strtoul(optarg, &t, 0);
117 if (errno != 0 || (t-optarg) != strlen(optarg)) {
118 fprintf(stderr, "option '%s' is not a number\n",
119 optarg);
120 exit(2);
121 }
108 122 break; break;
109 123 default: /* ’?’ */ default: /* ’?’ */
110 124 usage(); usage();
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/nicolas/debian.moreutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main