Extra space at end of custom status line

Bug #1783604 reported by Phil Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Triaged
Low
Unassigned

Bug Description

If any custom script executed / included for the custom status line returns no output, it is handled by appending it as if no escape code was provided.

This results in a simple append of a space for any items that do not output.

A simple check to ensure $str contains a value will avoid, before appending to output.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hmm, well there is an empty string check, but then we run sed on it, which might result in an empty string:

        if [ -z "$output" ]; then
                rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/custom"*
                return
        fi
        printf "$output" | $BYOBU_SED ':a;N;$!ba;s/\n//g'

Changed in byobu:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.