FS#46074 - [source-highlight] src-hilite-lesspipe.sh pegs CPU to 100% on zsh scripts

Attached to Project: Arch Linux
Opened by Jeremy (loserMcloser) - Saturday, 22 August 2015, 16:46 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 24 June 2018, 20:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Exactly as in the summary.

Additional info:
* package version: source-highlight 3.1.8-2

Steps to reproduce:
$ cat << EOF > /tmp/test.sh
#!/bin/zsh
echo hello
EOF
$ export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
$ export LESS=' -R '
$ less /tmp/test.sh
---> watch one of your CPU cores go to 100%

This task depends upon

Closed by  Jelle van der Waa (jelly)
Sunday, 24 June 2018, 20:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in source-highlight-3.1.8-16
Comment by Capi Etheriel (barraponto) - Wednesday, 06 June 2018, 22:22 GMT
This is a known upstream issue. I uploaded a patch upstream, but seeing as the last commit to the project is from 2005, we could just add the patch to the package. See https://savannah.gnu.org/bugs/?45299
Comment by Eli Schwartz (eschwartz) - Wednesday, 13 June 2018, 23:19 GMT
ping new maintainer

Loading...