mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
Fixed bug #62335: Remove hard to read --ctag colors.
This commit is contained in:
parent
8ab30be13a
commit
612083626f
|
@ -254,7 +254,7 @@ from:tange@gnu.org
|
||||||
to:parallel@gnu.org, bug-parallel@gnu.org
|
to:parallel@gnu.org, bug-parallel@gnu.org
|
||||||
stable-bcc: Jesse Alama <jessealama@fastmail.fm>
|
stable-bcc: Jesse Alama <jessealama@fastmail.fm>
|
||||||
|
|
||||||
Subject: GNU Parallel 20220522 ('Le Pen/Macron<<>>') released [stable]
|
Subject: GNU Parallel 20220522 ('Emmanuel Jean-Michel Frédéric<<>>') released [stable]
|
||||||
|
|
||||||
GNU Parallel 20220522 ('<<>>') has been released. It is available for download at: lbry://@GnuParallel:4
|
GNU Parallel 20220522 ('<<>>') has been released. It is available for download at: lbry://@GnuParallel:4
|
||||||
|
|
||||||
|
|
|
@ -2598,7 +2598,7 @@ sub check_invalid_option_combinations() {
|
||||||
|
|
||||||
sub init_globals() {
|
sub init_globals() {
|
||||||
# Defaults:
|
# Defaults:
|
||||||
$Global::version = 20220424;
|
$Global::version = 20220429;
|
||||||
$Global::progname = 'parallel';
|
$Global::progname = 'parallel';
|
||||||
$::name = "GNU Parallel";
|
$::name = "GNU Parallel";
|
||||||
$Global::infinity = 2**31;
|
$Global::infinity = 2**31;
|
||||||
|
@ -4967,7 +4967,6 @@ sub onall($@) {
|
||||||
# $opt::D
|
# $opt::D
|
||||||
# $opt::plain
|
# $opt::plain
|
||||||
# $opt::max_chars
|
# $opt::max_chars
|
||||||
# $opt::linebuffer
|
|
||||||
# $opt::files
|
# $opt::files
|
||||||
# $opt::colsep
|
# $opt::colsep
|
||||||
# $opt::timeout
|
# $opt::timeout
|
||||||
|
@ -11370,9 +11369,9 @@ sub print_joblog($) {
|
||||||
6..7,9..11,13..15,40..51,75..87,113..123,147..159,
|
6..7,9..11,13..15,40..51,75..87,113..123,147..159,
|
||||||
171..231,249..254),
|
171..231,249..254),
|
||||||
(map { [sprintf("%03d",$_),231] }
|
(map { [sprintf("%03d",$_),231] }
|
||||||
1..9,12..13,16..45,52..81,88..116,124..151,153,
|
1..9,12..13,16..45,52..81,88..114,124..149,153,
|
||||||
160..180,182..185,187..189,196..214,232..252,
|
160..178,180,182..185,187..186,189,196..214,232..250,
|
||||||
255..254));
|
253..254));
|
||||||
# reorder list so adjacent colors are dissimilar
|
# reorder list so adjacent colors are dissimilar
|
||||||
# %7 and %17 were found experimentally
|
# %7 and %17 were found experimentally
|
||||||
@color = @color[
|
@color = @color[
|
||||||
|
|
|
@ -3352,6 +3352,60 @@ https://github.com/mylanconnolly/parallel
|
||||||
(Last checked: 2021-07)
|
(Last checked: 2021-07)
|
||||||
|
|
||||||
|
|
||||||
|
=head2 DIFFERENCES BETWEEN p AND GNU Parallel
|
||||||
|
|
||||||
|
Summary (see legend above):
|
||||||
|
|
||||||
|
=over
|
||||||
|
|
||||||
|
=item - - - I4 - - N/A
|
||||||
|
|
||||||
|
=item - - - - - M6
|
||||||
|
|
||||||
|
=item - O2 O3 - O5 O6 - x x - O10
|
||||||
|
|
||||||
|
=item E1 - - - - - -
|
||||||
|
|
||||||
|
=item - - - - - - - - -
|
||||||
|
|
||||||
|
=item - -
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
|
B<p> is a tiny shell script. It can color output with some predefined
|
||||||
|
colors, but is otherwise quite limited.
|
||||||
|
|
||||||
|
It maxes out at 116000 jobs (probably due to limitations in Bash).
|
||||||
|
|
||||||
|
=head3 EXAMPLES FROM p
|
||||||
|
|
||||||
|
The coloring done by GNU B<parallel> is not exactly the same as B<p>.
|
||||||
|
|
||||||
|
1$ p -bc blue "ping 127.0.0.1" -uc red "ping 192.168.0.1" \
|
||||||
|
-rc yellow "ping 192.168.1.1" -t example "ping example.com"
|
||||||
|
|
||||||
|
1$ parallel --lb -j0 --ctag ping \
|
||||||
|
::: 127.0.0.1 192.168.0.1 192.168.1.1 example.com
|
||||||
|
|
||||||
|
2$ p "tail -f /var/log/httpd/access_log" \
|
||||||
|
-bc red "tail -f /var/log/httpd/error_log"
|
||||||
|
|
||||||
|
2$ cd /var/log/httpd;
|
||||||
|
parallel --lb --ctag tail -f ::: access_log error_log
|
||||||
|
|
||||||
|
3$ p tail -f "some file" \& p tail -f "other file with space.txt"
|
||||||
|
|
||||||
|
3$ parallel --lb tail -f ::: 'some file' "other file with space.txt"
|
||||||
|
|
||||||
|
4$ p -t project1 "hg pull project1" -t project2 \
|
||||||
|
"hg pull project2" -t project3 "hg pull project3"
|
||||||
|
|
||||||
|
4$ parallel --lb hg pull ::: project{1..3}
|
||||||
|
|
||||||
|
https://github.com/rudymatela/evenmoreutils/blob/master/man/p.1.adoc
|
||||||
|
(Last checked: 2022-04)
|
||||||
|
|
||||||
|
|
||||||
=head2 Todo
|
=head2 Todo
|
||||||
|
|
||||||
http://code.google.com/p/push/ (cannot compile)
|
http://code.google.com/p/push/ (cannot compile)
|
||||||
|
|
Loading…
Reference in a new issue