説明
Bug report
See discussion at the forum: https://community.seqera.io/t/output-width/2170
Expected behavior and actual behavior
ANSI output do not honor the COLUMNS variable set by bash. That causes issues in the expected width when the user want to change it for whatever reason, either to make it smaller than the actual available space or just to set a desired width in non-interactive executions.
Steps to reproduce the problem
Run any pipeline with long process names under SLURM and look at the standard output.
Alternatively, try to change the width when running the process:
COLUMNS=50 nextflow run ...
Program output
The output will be 80 characters wide in the SLURM execution and whatever your terminal sizes in the interactive execution.
The expectation would be that using the COLUMNS environment variable, the width would be the one stored there.
Environment
- Nextflow version: 25.04.2
- Java version: 17.0.3.1 2022-04-22 LTS
- Operating system: GNU/Linux (3.10.0-1160.88.1.el7.x86_64)
- Bash version: 5.1.0(1)-release