[Koha-bugs] [Bug 6914] New: koha_perl_deps.pl color option changes user's shell prompt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 26 00:51:57 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6914

             Bug #: 6914
           Summary: koha_perl_deps.pl color option changes user's shell
                    prompt
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Installation and upgrade (command-line installer)
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: gbarniskis at gmail.com
         QAContact: koha-bugs at lists.koha-community.org


This is a repeatable bug on a stock Debian squeeze fresh install with default
Terminal settings (black text on white background). Simply run

perl koha_perl_deps.pl -a -c

The script's assertion of 'bold white' affects the Terminal shell prompt, which
on default Terminal settings makes it white on white, a.k.a. suboptimal.

A correction is proposed in two parts. First, use blue not white for the header
and footer, as this should render fine for both default Terminal settings and
for those workers who prefer light text on a dark background. Second, at the
end of the utility we should return the shell to the condition we found it in
regardless of report color settings. This seems to do it:

print color 'reset' if $color;

I will submit a patch shortly.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list