|
From: | Coby Viner |
Subject: | GNU Parallel Bug Reports --header and --colsep parsing is aberrant when used without arguments |
Date: | Fri, 30 Jun 2017 19:26:43 -0400 |
User-agent: | SquirrelMail/1.4.23 [SVN] |
--header and --colsep parsing is aberrant when used without arguments.
Example error text:
N/A (but please see below warnings for failing case 2)
Parallel version (latest):
address@hidden:~] parallel --version
GNU parallel 20170622
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017
Ole Tange and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.
Web site: http://www.gnu.org/software/parallel
When using programs that
use GNU Parallel to process data for publication
please cite as described in 'parallel --citation'.
address@hidden:~]
Error example:
Failing case 1:
address@hidden:~] parallel --dry-run -j 1 --header
--colsep '\t' "echo f1={f-1} f2={f2}" :::: <(perl -e 'printf
"f-1\tf2\nA\tB\nC\tD\n"')
\t echo f1=A f2=B
\t echo f1=C f2=D
address@hidden:~]
Failing case 2:
address@hidden:~] parallel --dry-run -j 1 --header
'.*\n' --colsep "echo f1={f-1} f2={f2}" :::: <(perl -e
'printf "f-1\tf2\nA\tB\nC\tD\n"')
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/echo f1={ <-- HERE f-1} f2={f2}/ at
/mnt/work1/users/home2/cviner/bin/parallel line 164, <GEN0> line
1.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/echo f1={f-1} f2={ <-- HERE f2}/ at
/mnt/work1/users/home2/cviner/bin/parallel line 164, <GEN0> line
1.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/echo f1={ <-- HERE f-1} f2={f2}/ at
/mnt/work1/users/home2/cviner/bin/parallel line 10139, <GEN0> line
2.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/echo f1={f-1} f2={ <-- HERE f2}/ at
/mnt/work1/users/home2/cviner/bin/parallel line 10139, <GEN0> line
2.
A B
C D
address@hidden:~]
Passing case:
address@hidden:~] parallel --dry-run -j 1 --header
: --colsep '\t' "echo f1={f-1} f2={f2}" :::: <(perl -e
'printf "f-1\tf2\nA\tB\nC\tD\n"')
echo f1=A f2=B
echo f1=C f2=D
address@hidden:~]
Platform:
address@hidden:~] uname -a
Linux mordor 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64 GNU/Linux
address@hidden:~]
Description:
It appears that --header and --colsep when used with their default arguments can produce inconsistent results, if an argument is provided to only one of the two parameters. The result is counter-intuitive.
Thank you,
Coby Viner
[Prev in Thread] | Current Thread | [Next in Thread] |