Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64736 - rc-status returns error when using nocolor option inheritet from functions.sh
Summary: rc-status returns error when using nocolor option inheritet from functions.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 03:45 UTC by Andreas Kobara
Modified: 2004-10-29 06:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for /sbin/functions.sh and /bin/rc-status to correct nocolor output (nocolor.patch,1.28 KB, text/plain)
2004-09-20 03:46 UTC, Andreas Kobara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kobara 2004-09-20 03:45:32 UTC
rc-status should be able to display without color as this function is inheritet
from functions.sh. Instead it'll display an error.

genie # rc-status --nocolor
/bin/rc-status: line 31: let: COLS=25 80 - 7: syntax error in expression (error token is "80 - 7")

Please find a small patch for baselayout attached to fix that behaviour.
Comment 1 Andreas Kobara 2004-09-20 03:46:11 UTC
Created attachment 40002 [details]
Patch for /sbin/functions.sh and /bin/rc-status to correct nocolor output
Comment 2 SpanKY gentoo-dev 2004-09-20 20:27:23 UTC
i already fixed the COLS in cvs a day or two ago ;)

i added the --nocolor thing too, thanks
Comment 3 Andreas Kobara 2004-10-29 03:11:45 UTC
The color-patch is out now, but the "-nc" option for rc-status has no effect
since it is not handled inside functions.sh.

Non colored output is only achived by issueing "--nocolor" to rc-status.

Could you just remove the "-nc" option in rc-status, as well as in the syntax
howto part. The "--nocolor" option itself is used by other scripts too, and
doesn't really need a shortcut like "-nc".

Thanks,
Andy.
Comment 4 SpanKY gentoo-dev 2004-10-29 06:07:49 UTC
added -nc next to --nocolor in functions.sh