bugGNU Parallel - Bugs: bug #64993, parallel: Error: Command line too...

 
 

bug #64993: parallel: Error: Command line too long (14 >= -2203) at input 0: 1

Submitter:  None
Submitted:  Thu 07 Dec 2023 07:13:00 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 11 Dec 2023 10:44:25 AM UTC, comment #1: 

Please also give output of:

perl src/parallel -Dall --tmux echo ::: 1

Anonymous
Thu 07 Dec 2023 07:13:00 PM UTC, original submission:  

MCVE



$ perl src/parallel --tmux echo ::: 1
parallel: Error: Command line too long (14 >= -2203) at input 0: 1
$ perl src/parallel --version
GNU parallel 20231122
$ tmux -V
tmux 3.3a


  • Works in Linux
  • Does not work in macOS Ventura


My hunch is that it is related to this line of code:
https://git.savannah.gnu.org/cgit/parallel.git/tree/src/parallel#n13649


        # The arguments is given 3 times on the command line
        # and the tmux wrapping is around 30 chars
        # (29 for tmux1.9, 33 for tmux1.8)
        my $tmux_len = ::max(@out);
        $len = ::min($len,int($tmux_len/4-33));


I don't have the context to follow what's in the comment, but if I change it to the line below, it works:


        my $tmux_len = ::max(@out);
        $len = ::min($len,$tmux_len-33);


If given some more context, I can try to contribute with the fix.

Thanks!!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code