Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115150 - Syntax error in rc-daemon.sh and init scripts (net.lo, ...) when using bash-3.1
Summary: Syntax error in rc-daemon.sh and init scripts (net.lo, ...) when using bash-3.1
Status: RESOLVED DUPLICATE of bug 115142
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-10 19:51 UTC by Merlin
Modified: 2005-12-11 01:59 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Merlin 2005-12-10 19:51:00 UTC
When using bash-3.1, the init scripts report a syntax error at line 328 of
/lib/rcscripts/sh/rc-daemon.sh : syntax error near unexpected token '('.

The same error appear in /etc/init.d/net.lo.
Reverting to bash-3.0-r14 solves the problem

Reproducible: Always
Steps to Reproduce:
1. Emerging bash-3.1
2. /etc/init.d/net.lo restart

Actual Results:  
/lib/rcscripts/sh/rc-daemon.sh : line 328: syntax error near unexpected token '('
/lib/rcscripts/sh/rc-daemon.sh : line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/etc/init.d/net.lo: line 286: syntax error near unexpected token '('
/etc/init.d/net.lo: line 286: `local -a provide=() provide_list=() after=()
dead=() sorted=() sortedp=()'
* ERROR: "/etc/init.d/net.lo" has syntax errors in it; aborting ...

Expected Results:  
* Stopping lo
*  Bringing down lo
*    Shutting down lo      [ok]
* Starting lo
*  Bringing up lo
*    127.0.0.1/8           [ok]
*  Adding routes
*    127.0.0.0/8           [ok]
Comment 1 Gordon Stratton 2005-12-10 19:58:06 UTC
Same errors in many, if not most init scripts.  Agreed that bash 3.1 breaks it,
and a downgrade to bash 3.0 fixes it.
Comment 2 Gabriel Devenyi 2005-12-10 21:15:40 UTC
It isn't fun when an update makes your system nearly unbootable, why did 
bash-3.1 change the syntax in such a broken way? 
Comment 3 Paul Bredbury 2005-12-11 00:57:29 UTC
It sounds like bash-3.1 should be hard-masked, since it breaks baselayout.

This is discussed at http://forums.gentoo.org/viewtopic-t-411479.html
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 01:59:37 UTC

*** This bug has been marked as a duplicate of 115142 ***